114 references to This
Microsoft.CodeAnalysis.CSharp (114)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (5)
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)))); 143retExpression = F.LogicalOr(F.ObjectEqual(F.This(), boundLocal), retExpression); 207F.Field(F.This(), anonymousType.Properties[index].BackingField), 263F.Field(F.This(), property.BackingField),
Compiler\MethodBodySynthesizer.Lowered.cs (2)
434F.Field(F.This(), field), 465BoundExpression invocation = F.Call(methodToInvoke.IsStatic ? null : (useBaseReference ? (BoundExpression)F.Base(baseType: methodToInvoke.ContainingType) : F.This()),
Compiler\MethodCompiler.cs (1)
1236initializers.Add(factory.Assignment(factory.Field(factory.This(), field), factory.Parameter(parameter)));
FlowAnalysis\FlowAnalysisPass.cs (3)
131F.This(), 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 (18)
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), 482F.Field(F.This(), awaiterField), 516? F.Field(F.This(), awaiterField) 517: F.Convert(awaiterTemp.Type, F.Field(F.This(), awaiterField)))); 520F.Assignment(F.Field(F.This(), awaiterField), F.NullOrDefault(awaiterField.Type))); 566blockBuilder.Add(F.Assignment(F.Local(thisTemp), F.This())); 581F.Field(F.This(), _asyncMethodBuilderField), 584F.This().Type), 593F.Field(F.This(), _asyncMethodBuilderField), 596F.This().Type), 625_asyncMethodBuilderMemberCollection.AwaitOnCompleted).Construct(loweredAwaiterType, F.This().Type); 633F.Field(F.This(), _asyncMethodBuilderField), 641ImmutableArray.Create<BoundExpression>(F.AssignmentExpression(F.Local(thisTemp), F.This())),
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (8)
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)))); 351var returnStatement = F.Return(F.New(valueTaskT_ctor, F.This(), versionLocal)); 390instAssignment = F.Assignment(instLocal, F.This()); 456var returnStatement = F.Return(F.New(valueTask_ctor, F.This(), F.Call(F.InstanceField(_promiseOfValueOrEndField), promise_get_Version))); 670F.Assignment(F.Field(F.This(), stateField), F.Literal(initialState)));
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
183F.Field(F.This(), _builderField),
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (12)
116F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)), 121F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)), 146var faultBlock = F.Block(F.ExpressionStatement(F.Call(F.This(), disposeMethod))); 172F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)), 275F.Block(F.ExpressionStatement(F.Call(F.This(), frame.handler)))); 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))); 425bodyStatements.Add(F.ExpressionStatement(F.Call(F.This(), finallyMethod))); 443bodyStatements.Add(F.ExpressionStatement(F.Call(F.This(), finallyMethod)));
Lowering\IteratorRewriter\IteratorRewriter.cs (5)
235F.CloseMethod(F.Return(F.Field(F.This(), _currentField))); 247F.CloseMethod(F.Return(F.Field(F.This(), _currentField))); 266F.CloseMethod(F.Return(F.Call(F.This(), getEnumeratorGeneric))); 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\StateMachineRewriter\MethodToStateMachineRewriter.cs (9)
144BoundExpression thisProxyReplacement = thisProxy.Replacement(F.Syntax, static (frameType, F) => F.This(), F); 203var result = F.This(); 429cleanup.Add(F.AssignmentExpression(F.Field(F.This(), field), F.NullOrDefault(field.Type))); 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))); 929var fetchThis = proxy.Replacement(F.Syntax, static (frameType, F) => F.This(), F); 965return proxy.Replacement(F.Syntax, static (frameType, F) => F.This(), F); 981return proxy.Replacement(F.Syntax, static (frameType, F) => F.This(), F);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (7)
319bodyBuilder.Add(F.Assignment(leftExpression, F.This())); 438F.Assignment(F.Local(resultVariable), F.This())); 451F.IntEqual(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)), 452F.IntEqual(F.Field(F.This(), initialThreadIdField), managedThreadId)), 473var rightExpression = copySrc[method.ThisParameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 493BoundExpression parameterProxy = copySrc[parameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 512F.Assignment(F.Field(F.This(), stateField), F.Literal(initialState)));
Lowering\SyntheticBoundNodeFactory.cs (2)
222return (thisTempOpt != null) ? Local(thisTempOpt) : (BoundExpression)This(); 248return this.Field(this.This(), f);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (2)
35f.ExpressionStatement(f.Call(f.This(), baseConstructor)), 37f.Assignment(f.Field(f.This(), field), f.Parameter(parameter)),
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (2)
35f.ExpressionStatement(f.Call(f.This(), baseConstructor)), 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 (7)
475var fieldReference = f.Field(f.This(), field); 507var fieldReference = f.Field(f.This(), field); 537f.This())); 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\SynthesizedRecordBaseEquals.cs (1)
66F.This(),
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
127F.CloseMethod(F.Return(F.New(ctor, F.This())));
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
54statements.Add(F.Assignment(F.Field(F.This(), field), F.Field(param, field)));
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (2)
85statementsBuilder.Add(F.Assignment(F.Parameter(parameter), F.Property(F.This(), property))); 89statementsBuilder.Add(F.Assignment(F.Parameter(parameter), F.Field(F.This(), field)));
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (2)
98F.Property(F.This(), _equalityContract), 169retExpr = F.LogicalOr(F.ObjectEqual(F.This(), other), retExpr);
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (3)
73currentHashValue = MethodBodySynthesizer.GenerateGetHashCode(equalityComparer_GetHashCode, equalityComparer_get_Default, F.Property(F.This(), _equalityContract), F); 102currentHashValue = MethodBodySynthesizer.GenerateGetHashCode(equalityComparer_GetHashCode, equalityComparer_get_Default, F.Field(F.This(), f), F); 107F.Field(F.This(), f),
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (2)
63F.Call(F.This(), _typedRecordEquals, F.Convert(ContainingType, paramAccess))); 69expression = F.Call(F.This(), _typedRecordEquals, F.As(paramAccess, ContainingType));
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
201SymbolKind.Field => F.Field(F.This(), (FieldSymbol)member), 202SymbolKind.Property => F.Property(F.This(), (PropertySymbol)member),
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
72block.Add(F.If(F.Call(F.This(), _printMethod, builderLocal), makeAppendChar(F, builderLocal, ' ')));
Symbols\Synthesized\SynthesizedEmbeddedNativeIntegerAttributeSymbol.cs (2)
78factory.This(), 95factory.This(),
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (2)
82factory.This(), 96factory.This(),
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 (2)
58factory.This(), 61factory.Assignment(factory.Field(factory.This(), containingType.CodeField), factory.Parameter(CodeParameter)),