89 references to Field
Microsoft.CodeAnalysis.CSharp (89)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (4)
57F.Assignment(F.Field(F.This(), anonymousType.Properties[index].BackingField), F.Parameter(_parameters[index])); 87F.CloseMethod(F.Block(F.Return(F.Field(F.This(), _property.BackingField)))); 207F.Field(F.This(), anonymousType.Properties[index].BackingField), 263F.Field(F.This(), property.BackingField),
Compiler\MethodCompiler.cs (1)
1236initializers.Add(factory.Assignment(factory.Field(factory.This(), field), factory.Parameter(parameter)));
FlowAnalysis\FlowAnalysisPass.cs (2)
144F.Field(F.This(), field), 153F.Field(F.This(), field),
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (2)
148F.Field(F.This(), _asyncMethodBuilderField), 158var combinedTokens = F.Field(F.This(), _asyncIteratorInfo.CombinedTokensField);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (13)
145bodyBuilder.Add(F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField))); 165var stateDone = F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)); 219F.Field(F.This(), _asyncMethodBuilderField), 241F.ExpressionStatement(F.AssignmentExpression(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState))); 277builder.Add(F.Assignment(F.Field(F.This(), hoistedLocal), F.NullOrDefault(hoistedLocal.Type))); 290F.Field(F.This(), _asyncMethodBuilderField), 471F.Field(F.This(), awaiterField), 505? F.Field(F.This(), awaiterField) 506: F.Convert(awaiterTemp.Type, F.Field(F.This(), awaiterField)))); 509F.Assignment(F.Field(F.This(), awaiterField), F.NullOrDefault(awaiterField.Type))); 570F.Field(F.This(), _asyncMethodBuilderField), 582F.Field(F.This(), _asyncMethodBuilderField), 622F.Field(F.This(), _asyncMethodBuilderField),
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (5)
233BoundFieldAccess combinedTokens = F.Field(F.This(), _combinedTokensField); 338var versionInit = F.Assignment(versionLocal, F.Call(F.Field(F.This(), _promiseOfValueOrEndField), promise_get_Version)); 343F.Call(F.Field(F.This(), _promiseOfValueOrEndField), promise_GetStatus, versionLocal), 346thenClause: F.Return(F.New(valueTaskT_ctorValue, F.Call(F.Field(F.This(), _promiseOfValueOrEndField), promise_GetResult, versionLocal)))); 670F.Assignment(F.Field(F.This(), stateField), F.Literal(initialState)));
Lowering\AsyncRewriter\AsyncRewriter.cs (6)
183F.Field(F.This(), _builderField), 231F.Field(F.Local(stateMachineVariable), _builderField.AsMember(frameType)), 241F.Field(F.Local(stateMachineVariable), stateField.AsMember(frameType)), 250F.Field(F.Local(stateMachineVariable), instanceIdField.AsMember(frameType)), 263F.Field(F.Local(stateMachineVariable), _builderField.AsMember(frameType)), 271F.Field(F.Local(stateMachineVariable), _builderField.AsMember(frameType)),
Lowering\ClosureConversion\ClosureConversion.cs (2)
560F.Field(null, frame.SingletonCache), 1712cache = F.Field(receiver, cacheField.AsMember(constructedFrame)); //NOTE: the field was added to the unconstructed frame type.
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (8)
116F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)), 121F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)), 172F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)), 335F.Assignment(F.Field(F.This(), _current), rewrittenExpression), 336F.Assignment(F.Field(F.This(), stateField), F.Literal(stateNumber)), 340F.Assignment(F.Field(F.This(), stateField), F.Literal(_currentFinallyFrame.finalizeState))); 405F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.parent.finalizeState)), 423bodyStatements.Add(F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.finalizeState)));
Lowering\IteratorRewriter\IteratorRewriter.cs (4)
235F.CloseMethod(F.Return(F.Field(F.This(), _currentField))); 247F.CloseMethod(F.Return(F.Field(F.This(), _currentField))); 282bodyBuilder.Add(F.Assignment(F.Field(F.This(), stateField), F.Parameter(F.CurrentFunction.Parameters[0]))); // this.state = state; 287bodyBuilder.Add(F.Assignment(F.Field(F.This(), initialThreadIdField), managedThreadId));
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
54var boundCacheField = _factory.Field(receiver: null, cacheField);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
291_factory.Field(rewrittenReceiver, backingField),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
73return _factory.Field(receiver: null, immutableArrayOfTargetCollectionTypeEmpty);
Lowering\LocalRewriter\LocalRewriter_Field.cs (2)
87rewrittenReceiver = _factory.Field(rewrittenReceiver, nestedFieldSymbol); 95return _factory.Field(rewrittenReceiver, underlyingField);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (2)
646var callSiteFieldAccess = _factory.Field(null, callSiteField); 658_factory.Field(callSiteFieldAccess, callSiteTargetField),
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (5)
429cleanup.Add(F.AssignmentExpression(F.Field(F.This(), field), F.NullOrDefault(field.Type))); 606return F.Field(receiver, field.FieldSymbol); 697var replacement = F.Field(F.This(), hoistedField); 727=> F.Field(F.This(), instanceIdField); 920return F.Assignment(F.Field(F.This(), stateField), F.AssignmentExpression(F.Local(cachedState), F.Literal(stateNumber)));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
451F.IntEqual(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)), 452F.IntEqual(F.Field(F.This(), initialThreadIdField), managedThreadId)), 512F.Assignment(F.Field(F.This(), stateField), F.Literal(initialState)));
Lowering\SyntheticBoundNodeFactory.cs (1)
248return this.Field(this.This(), f);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
37f.Assignment(f.Field(f.This(), field), f.Parameter(parameter)),
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
37f.Assignment(f.Field(f.This(), field), f.Parameter(parameter)),
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (4)
56var itemFieldReference = f.Field(f.This(), itemField); 68var itemFieldReference = f.Field(f.This(), itemField); 80var moveNextCalledFieldReference = f.Field(f.This(), moveNextCalledField); 99var moveNextCalledFieldReference = f.Field(f.This(), moveNextCalledField);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (6)
475var fieldReference = f.Field(f.This(), field); 507var fieldReference = f.Field(f.This(), field); 559var fieldReference = f.Field(f.This(), field); 595var fieldReference = f.Field(f.This(), field); 652var fieldReference = f.Field(f.This(), field); 686var fieldReference = f.Field(f.This(), field);
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (2)
54statements.Add(F.Assignment(F.Field(F.This(), field), F.Field(param, field)));
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
89statementsBuilder.Add(F.Assignment(F.Parameter(parameter), F.Field(F.This(), field)));
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (2)
102currentHashValue = MethodBodySynthesizer.GenerateGetHashCode(equalityComparer_GetHashCode, equalityComparer_get_Default, F.Field(F.This(), f), F); 107F.Field(F.This(), f),
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
201SymbolKind.Field => F.Field(F.This(), (FieldSymbol)member),
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (2)
77factory.Field( 94factory.Field(
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (2)
81factory.Field( 95factory.Field(
Symbols\Synthesized\SynthesizedEmbeddedNullableContextAttributeSymbol.cs (1)
65factory.Field(factory.This(), _fields.Single()),
Symbols\Synthesized\SynthesizedEmbeddedNullablePublicOnlyAttributeSymbol.cs (1)
62factory.Field(factory.This(), _fields.Single()),
Symbols\Synthesized\SynthesizedEmbeddedRefSafetyRulesAttributeSymbol.cs (1)
57factory.Field(factory.This(), _fields.Single()),
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
61factory.Assignment(factory.Field(factory.This(), containingType.CodeField), factory.Parameter(CodeParameter)),