41 references to BaseReference
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder.ValueChecks.cs (3)
1795
ReportDiagnosticsIfObsolete(diagnostics, setMethod, node, receiver?.Kind == BoundKind.
BaseReference
);
1845
ReportDiagnosticsIfObsolete(diagnostics, getMethod, node, receiver?.Kind == BoundKind.
BaseReference
);
1928
if (receiverOpt?.Kind == BoundKind.
BaseReference
&& member.IsAbstract)
Binder\Binder_Expressions.cs (7)
7945
bool leftIsBaseReference = boundLeft.Kind == BoundKind.
BaseReference
;
8059
boundLeft.Kind == BoundKind.
BaseReference
||
8275
ReportDiagnosticsIfObsolete(diagnostics, symbol, node, hasBaseReceiver: left.Kind == BoundKind.
BaseReference
);
8678
ReportDiagnosticsIfObsolete(diagnostics, propertySymbol, node, hasBaseReceiver: receiver?.Kind == BoundKind.
BaseReference
);
9586
LookupOptions lookupOptions = expr.Kind == BoundKind.
BaseReference
? LookupOptions.UseBaseReferenceAccessibility : LookupOptions.Default;
9701
if (receiverKind == BoundKind.
BaseReference
)
9842
ReportDiagnosticsIfObsolete(diagnostics, property, syntax, hasBaseReceiver: receiver != null && receiver.Kind == BoundKind.
BaseReference
);
Binder\Binder_Invocation.cs (3)
412
case BoundKind.
BaseReference
:
1056
else if (call.ReceiverOpt.Kind == BoundKind.
BaseReference
&& this.ContainingType.IsRestrictedType())
1281
bool hasBaseReceiver = receiver != null && receiver.Kind == BoundKind.
BaseReference
;
Binder\Binder_Operators.cs (1)
2662
case BoundKind.
BaseReference
:
Binder\Binder_Statements.cs (1)
1807
else if (receiver.Kind == BoundKind.
BaseReference
)
BoundTree\BoundNodeExtensions.cs (1)
64
(receiverOpt.Kind == BoundKind.ThisReference || receiverOpt.Kind == BoundKind.
BaseReference
);
CodeGen\EmitAddress.cs (1)
91
case BoundKind.
BaseReference
:
CodeGen\EmitExpression.cs (2)
176
case BoundKind.
BaseReference
:
1516
Debug.Assert(receiver.Kind != BoundKind.
BaseReference
, "base should always use call");
Compilation\CSharpSemanticModel.cs (1)
3679
case BoundKind.
BaseReference
:
FlowAnalysis\AbstractFlowPass.cs (1)
565
case BoundKind.
BaseReference
:
FlowAnalysis\DefiniteAssignment.cs (2)
1506
case BoundKind.
BaseReference
:
2619
case BoundKind.
BaseReference
:
FlowAnalysis\LocalDataFlowPass.cs (1)
216
case BoundKind.
BaseReference
:
FlowAnalysis\NullableWalker.cs (1)
2022
case BoundKind.
BaseReference
:
FlowAnalysis\ReadWriteWalker.cs (1)
197
case BoundKind.
BaseReference
:
Generated\BoundNodes.xml.Generated.cs (3)
4477
: base(BoundKind.
BaseReference
, syntax, type, hasErrors)
4482
: base(BoundKind.
BaseReference
, syntax, type)
9064
case BoundKind.
BaseReference
:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
191
case BoundKind.
BaseReference
:
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
277
bool hasBaseReceiver = node.ReceiverOpt != null && node.ReceiverOpt.Kind == BoundKind.
BaseReference
;
291
bool hasBaseReceiver = node.ReceiverOpt != null && node.ReceiverOpt.Kind == BoundKind.
BaseReference
;
Lowering\DiagnosticsPass_Warnings.cs (1)
148
return receiver.Kind != BoundKind.ThisReference && receiver.Kind != BoundKind.
BaseReference
;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
845
case BoundKind.
BaseReference
:
890
case BoundKind.
BaseReference
:
Lowering\MethodToClassRewriter.cs (2)
727
return originalReceiver is { Kind: BoundKind.
BaseReference
} &&
728
rewrittenReceiver is { Kind: not BoundKind.
BaseReference
};
Lowering\SpillSequenceSpiller.cs (1)
379
case BoundKind.
BaseReference
:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
610
case BoundKind.
BaseReference
:
Operations\CSharpOperationFactory.cs (1)
109
case BoundKind.
BaseReference
:
Operations\CSharpOperationFactory_Methods.cs (1)
394
&& receiverOpt.Kind != BoundKind.
BaseReference