@@ -77,92 +77,77 @@ private ILInstruction Next(ref int position)
7777 case OperandType . ShortInlineBrTarget :
7878 {
7979 // 8-bit integer branch target
80- var shortDelta = ReadSByte ( ref position ) ;
81- return new ShortInlineBrTargetInstruction ( offset , opCode , shortDelta ) ;
80+ return new ShortInlineBrTargetInstruction ( offset , opCode , ReadSByte ( ref position ) ) ;
8281 }
8382 case OperandType . InlineBrTarget :
8483 {
8584 // 32-bit integer branch target
86- var delta = ReadInt32 ( ref position ) ;
87- return new InlineBrTargetInstruction ( offset , opCode , delta ) ;
85+ return new InlineBrTargetInstruction ( offset , opCode , ReadInt32 ( ref position ) ) ;
8886 }
8987 case OperandType . ShortInlineI :
9088 {
9189 // 8-bit integer: 001F ldc.i4.s, FE12 unaligned.
92- var int8 = ReadByte ( ref position ) ;
93- return new ShortInlineIInstruction ( offset , opCode , int8 ) ;
90+ return new ShortInlineIInstruction ( offset , opCode , ReadByte ( ref position ) ) ;
9491 }
9592 case OperandType . InlineI :
9693 {
9794 // 32-bit integer
98- var int32 = ReadInt32 ( ref position ) ;
99- return new InlineIInstruction ( offset , opCode , int32 ) ;
95+ return new InlineIInstruction ( offset , opCode , ReadInt32 ( ref position ) ) ;
10096 }
10197 case OperandType . InlineI8 :
10298 {
10399 // 64-bit integer
104- var int64 = ReadInt64 ( ref position ) ;
105- return new InlineI8Instruction ( offset , opCode , int64 ) ;
100+ return new InlineI8Instruction ( offset , opCode , ReadInt64 ( ref position ) ) ;
106101 }
107102 case OperandType . ShortInlineR :
108103 {
109104 // 32-bit IEEE floating point number
110- var float32 = ReadSingle ( ref position ) ;
111- return new ShortInlineRInstruction ( offset , opCode , float32 ) ;
105+ return new ShortInlineRInstruction ( offset , opCode , ReadSingle ( ref position ) ) ;
112106 }
113107 case OperandType . InlineR :
114108 {
115109 // 64-bit IEEE floating point number
116- var float64 = ReadDouble ( ref position ) ;
117- return new InlineRInstruction ( offset , opCode , float64 ) ;
110+ return new InlineRInstruction ( offset , opCode , ReadDouble ( ref position ) ) ;
118111 }
119112 case OperandType . ShortInlineVar :
120113 {
121114 // 8-bit integer containing the ordinal of a local variable or an argument
122- var index8 = ReadByte ( ref position ) ;
123- return new ShortInlineVarInstruction ( offset , opCode , index8 ) ;
115+ return new ShortInlineVarInstruction ( offset , opCode , ReadByte ( ref position ) ) ;
124116 }
125117 case OperandType . InlineVar :
126118 {
127119 // 16-bit integer containing the ordinal of a local variable or an argument
128- var index16 = ReadUInt16 ( ref position ) ;
129- return new InlineVarInstruction ( offset , opCode , index16 ) ;
120+ return new InlineVarInstruction ( offset , opCode , ReadUInt16 ( ref position ) ) ;
130121 }
131122 case OperandType . InlineString :
132123 {
133124 // 32-bit metadata string token
134- var token = ReadInt32 ( ref position ) ;
135- return new InlineStringInstruction ( offset , opCode , token , _resolver ) ;
125+ return new InlineStringInstruction ( offset , opCode , ReadInt32 ( ref position ) , _resolver ) ;
136126 }
137127 case OperandType . InlineSig :
138128 {
139129 // 32-bit metadata signature token
140- var token = ReadInt32 ( ref position ) ;
141- return new InlineSigInstruction ( offset , opCode , token , _resolver ) ;
130+ return new InlineSigInstruction ( offset , opCode , ReadInt32 ( ref position ) , _resolver ) ;
142131 }
143132 case OperandType . InlineMethod :
144133 {
145134 // 32-bit metadata token
146- var token = ReadInt32 ( ref position ) ;
147- return new InlineMethodInstruction ( offset , opCode , token , _resolver ) ;
135+ return new InlineMethodInstruction ( offset , opCode , ReadInt32 ( ref position ) , _resolver ) ;
148136 }
149137 case OperandType . InlineField :
150138 {
151139 // 32-bit metadata token
152- var token = ReadInt32 ( ref position ) ;
153- return new InlineFieldInstruction ( _resolver , offset , opCode , token ) ;
140+ return new InlineFieldInstruction ( _resolver , offset , opCode , ReadInt32 ( ref position ) ) ;
154141 }
155142 case OperandType . InlineType :
156143 {
157144 // 32-bit metadata token
158- var token = ReadInt32 ( ref position ) ;
159- return new InlineTypeInstruction ( offset , opCode , token , _resolver ) ;
145+ return new InlineTypeInstruction ( offset , opCode , ReadInt32 ( ref position ) , _resolver ) ;
160146 }
161147 case OperandType . InlineTok :
162148 {
163149 // FieldRef, MethodRef, or TypeRef token
164- var token = ReadInt32 ( ref position ) ;
165- return new InlineTokInstruction ( offset , opCode , token , _resolver ) ;
150+ return new InlineTokInstruction ( offset , opCode , ReadInt32 ( ref position ) , _resolver ) ;
166151 }
167152 case OperandType . InlineSwitch :
168153 {
@@ -240,4 +225,4 @@ private double ReadDouble(ref int position)
240225 position += 8 ;
241226 return value ;
242227 }
243- }
228+ }
0 commit comments