54 references to ThisReference
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder.ValueChecks.cs (5)
817case BoundKind.ThisReference: 3378case BoundKind.ThisReference: 3704case BoundKind.ThisReference: 4048case BoundKind.ThisReference: 4739case BoundKind.ThisReference:
Binder\Binder_Expressions.cs (1)
9855if (!gotError && receiver != null && receiver.Kind == BoundKind.ThisReference && receiver.WasCompilerGenerated)
Binder\Binder_Invocation.cs (2)
417case BoundKind.ThisReference: 1265if (!gotError && method.RequiresInstanceReceiver && receiver != null && receiver.Kind == BoundKind.ThisReference && receiver.WasCompilerGenerated)
Binder\Binder_Operators.cs (1)
2661case BoundKind.ThisReference:
Binder\Binder_Statements.cs (1)
1775(propertyIsStatic || receiver?.Kind == BoundKind.ThisReference);
BoundTree\BoundNodeExtensions.cs (1)
64(receiverOpt.Kind == BoundKind.ThisReference || receiverOpt.Kind == BoundKind.BaseReference);
BoundTree\BoundTreeVisitors.cs (1)
99case BoundKind.ThisReference:
CodeGen\CodeGenerator_HasHome.cs (2)
67case BoundKind.ThisReference: 257fieldAccess.ReceiverOpt.Kind == BoundKind.ThisReference;
CodeGen\EmitAddress.cs (1)
64case BoundKind.ThisReference:
CodeGen\EmitExpression.cs (7)
165case BoundKind.ThisReference: 1555case BoundKind.ThisReference: 1600case BoundKind.ThisReference: 1646Debug.Assert(receiver.Kind == BoundKind.ThisReference); 2135case BoundKind.ThisReference: 2870case BoundKind.ThisReference: 3101case BoundKind.ThisReference:
CodeGen\Optimizer.cs (1)
1036case BoundKind.ThisReference:
Compilation\CSharpSemanticModel.cs (1)
3678case BoundKind.ThisReference:
FlowAnalysis\AbstractFlowPass.cs (1)
564case BoundKind.ThisReference:
FlowAnalysis\DataFlowsOutWalker.cs (2)
144case BoundKind.ThisReference: 242case BoundKind.ThisReference: return this.MethodThisParameter;
FlowAnalysis\DefiniteAssignment.cs (6)
824case BoundKind.ThisReference: 1011case BoundKind.ThisReference: 1384case BoundKind.ThisReference: 1504case BoundKind.ThisReference: 1645case BoundKind.ThisReference: 2618case BoundKind.ThisReference:
FlowAnalysis\LocalDataFlowPass.cs (1)
215case BoundKind.ThisReference:
FlowAnalysis\NullableWalker.cs (1)
2021case BoundKind.ThisReference:
FlowAnalysis\ReadWriteWalker.cs (1)
191case BoundKind.ThisReference:
Generated\BoundNodes.xml.Generated.cs (3)
4373: base(BoundKind.ThisReference, syntax, type, hasErrors) 4381: base(BoundKind.ThisReference, syntax, type) 9059case BoundKind.ThisReference:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
245case BoundKind.ThisReference:
Lowering\DiagnosticsPass_Warnings.cs (2)
148return receiver.Kind != BoundKind.ThisReference && receiver.Kind != BoundKind.BaseReference; 225case BoundKind.ThisReference:
Lowering\LocalRewriter\LocalRewriter.cs (1)
1023case BoundKind.ThisReference:
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (3)
689case BoundKind.ThisReference: // a special kind of parameter 842case BoundKind.ThisReference: 889case BoundKind.ThisReference:
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
37if (receiver != null && receiver.Kind != BoundKind.ThisReference)
Lowering\SpillSequenceSpiller.cs (1)
378case BoundKind.ThisReference:
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
295if (node.ReceiverOpt != null && node.ReceiverOpt.Kind == BoundKind.ThisReference)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
618if (receiver.Kind != BoundKind.ThisReference && !isFieldOfStruct) 626case BoundKind.ThisReference:
Operations\CSharpOperationFactory.cs (1)
111case BoundKind.ThisReference:
Operations\CSharpOperationFactory_Methods.cs (2)
106if (symbol != null && symbol.IsStatic && instance.WasCompilerGenerated && instance.Kind == BoundKind.ThisReference) 393|| (receiverOpt.Kind != BoundKind.ThisReference