54 references to ThisReference
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder.ValueChecks.cs (7)
840case BoundKind.ThisReference: 3401case BoundKind.ThisReference: 3727case BoundKind.ThisReference: 4071case BoundKind.ThisReference: 4763case BoundKind.ThisReference: 5741case BoundKind.ThisReference: 5931fieldAccess.ReceiverOpt.Kind == BoundKind.ThisReference;
Binder\Binder_Expressions.cs (1)
9852if (!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)
1772(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\EmitAddress.cs (1)
66case 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)
4372: base(BoundKind.ThisReference, syntax, type, hasErrors) 4380: base(BoundKind.ThisReference, syntax, type) 9058case 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)
601if (receiver.Kind != BoundKind.ThisReference && !isFieldOfStruct) 609case 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