@@ -149,22 +149,13 @@ private void ConvertIdentifierNameAssignment(SemanticModel model, IdentifierName
149149 if ( withinConstructor && property . SetMethod == null )
150150 {
151151 IFieldSymbol [ ] fields = property . ContainingType . GetAllMembers ( ) . OfType < IFieldSymbol > ( ) . ToArray ( ) ;
152- if ( Symbol . IsStatic )
153- {
154- IFieldSymbol backingField = Array . Find ( fields , p => SymbolEqualityComparer . Default . Equals ( p . AssociatedSymbol , property ) ) ! ;
155- byte backingFieldIndex = _context . AddStaticField ( backingField ) ;
156- if ( ! _inline ) AccessSlot ( OpCode . LDARG , 0 ) ;
157- AccessSlot ( OpCode . STSFLD , backingFieldIndex ) ;
158- }
159- else
160- {
161- fields = fields . Where ( p => ! p . IsStatic ) . ToArray ( ) ;
162- int backingFieldIndex = Array . FindIndex ( fields , p => SymbolEqualityComparer . Default . Equals ( p . AssociatedSymbol , property ) ) ;
163- AccessSlot ( OpCode . LDARG , 0 ) ;
164- Push ( backingFieldIndex ) ;
165- AddInstruction ( OpCode . ROT ) ;
166- AddInstruction ( OpCode . SETITEM ) ;
167- }
152+
153+ fields = fields . Where ( p => ! p . IsStatic ) . ToArray ( ) ;
154+ int backingFieldIndex = Array . FindIndex ( fields , p => SymbolEqualityComparer . Default . Equals ( p . AssociatedSymbol , property ) ) ;
155+ AccessSlot ( OpCode . LDARG , 0 ) ;
156+ Push ( backingFieldIndex ) ;
157+ AddInstruction ( OpCode . ROT ) ;
158+ AddInstruction ( OpCode . SETITEM ) ;
168159 }
169160 else if ( property . SetMethod != null )
170161 {
0 commit comments