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)
159F.Field(F.This(), _asyncMethodBuilderField), 169var combinedTokens = F.Field(F.This(), _asyncIteratorInfo.CombinedTokensField);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (18)
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))); 569blockBuilder.Add(F.Assignment(F.Local(thisTemp), F.This())); 584F.Field(F.This(), _asyncMethodBuilderField), 587F.This().Type), 596F.Field(F.This(), _asyncMethodBuilderField), 599F.This().Type), 628_asyncMethodBuilderMemberCollection.AwaitOnCompleted).Construct(loweredAwaiterType, F.This().Type); 636F.Field(F.This(), _asyncMethodBuilderField), 644ImmutableArray.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)
117F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)), 122F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)), 147var faultBlock = F.Block(F.ExpressionStatement(F.Call(F.This(), disposeMethod))); 177F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)), 281F.Block(F.ExpressionStatement(F.Call(F.This(), frame.handler)))); 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))); 431bodyStatements.Add(F.ExpressionStatement(F.Call(F.This(), finallyMethod))); 449bodyStatements.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)
149BoundExpression thisProxyReplacement = thisProxy.Replacement(F.Syntax, static (frameType, F) => F.This(), F); 208var result = F.This(); 441cleanup.Add(F.AssignmentExpression(F.Field(F.This(), field), F.NullOrDefault(field.Type))); 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))); 947var fetchThis = proxy.Replacement(F.Syntax, static (frameType, F) => F.This(), F); 983return proxy.Replacement(F.Syntax, static (frameType, F) => F.This(), F); 999return proxy.Replacement(F.Syntax, static (frameType, F) => F.This(), F);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (7)
323bodyBuilder.Add(F.Assignment(leftExpression, F.This())); 442F.Assignment(F.Local(resultVariable), F.This())); 455F.IntEqual(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)), 456F.IntEqual(F.Field(F.This(), initialThreadIdField), managedThreadId)), 477var rightExpression = copySrc[method.ThisParameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 497BoundExpression parameterProxy = copySrc[parameter].Replacement(F.Syntax, static (stateMachineType, F) => F.This(), F); 516F.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)),