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