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)
159F.Field(F.This(), _asyncMethodBuilderField), 169var combinedTokens = F.Field(F.This(), _asyncIteratorInfo.CombinedTokensField);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (13)
147bodyBuilder.Add(F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField))); 167var stateDone = F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)); 228F.ExpressionStatement(F.AssignmentExpression(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState))); 257F.Field(F.This(), _asyncMethodBuilderField), 280builder.Add(F.Assignment(F.Field(F.This(), hoistedLocal), F.NullOrDefault(hoistedLocal.Type))); 293F.Field(F.This(), _asyncMethodBuilderField), 485F.Field(F.This(), awaiterField), 519? F.Field(F.This(), awaiterField) 520: F.Convert(awaiterTemp.Type, F.Field(F.This(), awaiterField)))); 523F.Assignment(F.Field(F.This(), awaiterField), F.NullOrDefault(awaiterField.Type))); 584F.Field(F.This(), _asyncMethodBuilderField), 596F.Field(F.This(), _asyncMethodBuilderField), 636F.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)
117F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)), 122F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)), 177F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)), 341F.Assignment(F.Field(F.This(), _current), rewrittenExpression), 342F.Assignment(F.Field(F.This(), stateField), F.Literal(stateNumber)), 346F.Assignment(F.Field(F.This(), stateField), F.Literal(_currentFinallyFrame.finalizeState))); 411F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.parent.finalizeState)), 429bodyStatements.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)
441cleanup.Add(F.AssignmentExpression(F.Field(F.This(), field), F.NullOrDefault(field.Type))); 623return F.Field(receiver, field.FieldSymbol); 715var replacement = F.Field(F.This(), hoistedField); 745=> F.Field(F.This(), instanceIdField); 938return F.Assignment(F.Field(F.This(), stateField), F.AssignmentExpression(F.Local(cachedState), F.Literal(stateNumber)));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
455F.IntEqual(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)), 456F.IntEqual(F.Field(F.This(), initialThreadIdField), managedThreadId)), 516F.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)),