41 references to BaseReference
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder.ValueChecks.cs (3)
1772ReportDiagnosticsIfObsolete(diagnostics, setMethod, node, receiver?.Kind == BoundKind.BaseReference); 1822ReportDiagnosticsIfObsolete(diagnostics, getMethod, node, receiver?.Kind == BoundKind.BaseReference); 1905if (receiverOpt?.Kind == BoundKind.BaseReference && member.IsAbstract)
Binder\Binder_Expressions.cs (7)
7946bool leftIsBaseReference = boundLeft.Kind == BoundKind.BaseReference; 8060boundLeft.Kind == BoundKind.BaseReference || 8276ReportDiagnosticsIfObsolete(diagnostics, symbol, node, hasBaseReceiver: left.Kind == BoundKind.BaseReference); 8679ReportDiagnosticsIfObsolete(diagnostics, propertySymbol, node, hasBaseReceiver: receiver?.Kind == BoundKind.BaseReference); 9587LookupOptions lookupOptions = expr.Kind == BoundKind.BaseReference ? LookupOptions.UseBaseReferenceAccessibility : LookupOptions.Default; 9702if (receiverKind == BoundKind.BaseReference) 9843ReportDiagnosticsIfObsolete(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)
2667case BoundKind.BaseReference:
Binder\Binder_Statements.cs (1)
1810else if (receiver.Kind == BoundKind.BaseReference)
BoundTree\BoundNodeExtensions.cs (1)
64(receiverOpt.Kind == BoundKind.ThisReference || receiverOpt.Kind == BoundKind.BaseReference);
CodeGen\EmitAddress.cs (1)
89case 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)
2083case BoundKind.BaseReference:
FlowAnalysis\ReadWriteWalker.cs (1)
197case BoundKind.BaseReference:
Generated\BoundNodes.xml.Generated.cs (3)
4478: base(BoundKind.BaseReference, syntax, type, hasErrors) 4483: base(BoundKind.BaseReference, syntax, type) 9101case 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)
627case BoundKind.BaseReference:
Operations\CSharpOperationFactory.cs (1)
109case BoundKind.BaseReference:
Operations\CSharpOperationFactory_Methods.cs (1)
394&& receiverOpt.Kind != BoundKind.BaseReference