54 references to ThisReference
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder.ValueChecks.cs (7)
840
case BoundKind.
ThisReference
:
3401
case BoundKind.
ThisReference
:
3727
case BoundKind.
ThisReference
:
4071
case BoundKind.
ThisReference
:
4763
case BoundKind.
ThisReference
:
5741
case BoundKind.
ThisReference
:
5931
fieldAccess.ReceiverOpt.Kind == BoundKind.
ThisReference
;
Binder\Binder_Expressions.cs (1)
9852
if (!gotError && receiver != null && receiver.Kind == BoundKind.
ThisReference
&& receiver.WasCompilerGenerated)
Binder\Binder_Invocation.cs (2)
417
case BoundKind.
ThisReference
:
1265
if (!gotError && method.RequiresInstanceReceiver && receiver != null && receiver.Kind == BoundKind.
ThisReference
&& receiver.WasCompilerGenerated)
Binder\Binder_Operators.cs (1)
2661
case 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)
99
case BoundKind.
ThisReference
:
CodeGen\EmitAddress.cs (1)
66
case BoundKind.
ThisReference
:
CodeGen\EmitExpression.cs (7)
165
case BoundKind.
ThisReference
:
1555
case BoundKind.
ThisReference
:
1600
case BoundKind.
ThisReference
:
1646
Debug.Assert(receiver.Kind == BoundKind.
ThisReference
);
2135
case BoundKind.
ThisReference
:
2870
case BoundKind.
ThisReference
:
3101
case BoundKind.
ThisReference
:
CodeGen\Optimizer.cs (1)
1036
case BoundKind.
ThisReference
:
Compilation\CSharpSemanticModel.cs (1)
3678
case BoundKind.
ThisReference
:
FlowAnalysis\AbstractFlowPass.cs (1)
564
case BoundKind.
ThisReference
:
FlowAnalysis\DataFlowsOutWalker.cs (2)
144
case BoundKind.
ThisReference
:
242
case BoundKind.
ThisReference
: return this.MethodThisParameter;
FlowAnalysis\DefiniteAssignment.cs (6)
824
case BoundKind.
ThisReference
:
1011
case BoundKind.
ThisReference
:
1384
case BoundKind.
ThisReference
:
1504
case BoundKind.
ThisReference
:
1645
case BoundKind.
ThisReference
:
2618
case BoundKind.
ThisReference
:
FlowAnalysis\LocalDataFlowPass.cs (1)
215
case BoundKind.
ThisReference
:
FlowAnalysis\NullableWalker.cs (1)
2021
case BoundKind.
ThisReference
:
FlowAnalysis\ReadWriteWalker.cs (1)
191
case BoundKind.
ThisReference
:
Generated\BoundNodes.xml.Generated.cs (3)
4372
: base(BoundKind.
ThisReference
, syntax, type, hasErrors)
4380
: base(BoundKind.
ThisReference
, syntax, type)
9058
case BoundKind.
ThisReference
:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
245
case BoundKind.
ThisReference
:
Lowering\DiagnosticsPass_Warnings.cs (2)
148
return receiver.Kind != BoundKind.
ThisReference
&& receiver.Kind != BoundKind.BaseReference;
225
case BoundKind.
ThisReference
:
Lowering\LocalRewriter\LocalRewriter.cs (1)
1023
case BoundKind.
ThisReference
:
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (3)
689
case BoundKind.
ThisReference
: // a special kind of parameter
842
case BoundKind.
ThisReference
:
889
case BoundKind.
ThisReference
:
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
37
if (receiver != null && receiver.Kind != BoundKind.
ThisReference
)
Lowering\SpillSequenceSpiller.cs (1)
378
case BoundKind.
ThisReference
:
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
295
if (node.ReceiverOpt != null && node.ReceiverOpt.Kind == BoundKind.
ThisReference
)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
601
if (receiver.Kind != BoundKind.
ThisReference
&& !isFieldOfStruct)
609
case BoundKind.
ThisReference
:
Operations\CSharpOperationFactory.cs (1)
111
case BoundKind.
ThisReference
:
Operations\CSharpOperationFactory_Methods.cs (2)
106
if (symbol != null && symbol.IsStatic && instance.WasCompilerGenerated && instance.Kind == BoundKind.
ThisReference
)
393
|| (receiverOpt.Kind != BoundKind.
ThisReference