21 references to RequiresInstanceReceiver
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.ValueChecks.cs (6)
646
receiver = otherSymbol.
RequiresInstanceReceiver
()
1649
return symbol.
RequiresInstanceReceiver
()
2165
if (!symbol.
RequiresInstanceReceiver
())
2614
if (!methodInfo.Symbol.
RequiresInstanceReceiver
())
2690
if (!methodInfo.Symbol.
RequiresInstanceReceiver
())
2814
if (!symbol.
RequiresInstanceReceiver
())
Binder\Binder_Expressions.cs (2)
2250
if (!member.
RequiresInstanceReceiver
())
8805
if (!symbol.
RequiresInstanceReceiver
())
Binder\Binder_Lookup.cs (1)
1756
return symbol.
RequiresInstanceReceiver
();
Binder\Semantics\AccessCheck.cs (1)
204
if (!symbol.
RequiresInstanceReceiver
())
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
615
if (result.Result.IsValid && member.
RequiresInstanceReceiver
() == requireStatic)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
679
symbol.
RequiresInstanceReceiver
()
FlowAnalysis\LocalDataFlowPass.cs (2)
229
Debug.Assert((receiver is null) != member.
RequiresInstanceReceiver
());
242
if (member.
RequiresInstanceReceiver
())
FlowAnalysis\NullableWalker.cs (4)
705
var isStatic = !constructor.
RequiresInstanceReceiver
();
1989
Debug.Assert(member?.
RequiresInstanceReceiver
() ?? true);
5480
member.
RequiresInstanceReceiver
() &&
10765
if (member.
RequiresInstanceReceiver
())
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
666
var requiresInstanceReceiver = methodOrIndexer.
RequiresInstanceReceiver
() && methodOrIndexer is not MethodSymbol { MethodKind: MethodKind.Constructor } and not FunctionPointerMethodSymbol;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
885
case "" when !ContainingSymbol.
RequiresInstanceReceiver
() || ContainingSymbol is MethodSymbol { MethodKind: MethodKind.Constructor or MethodKind.DelegateInvoke }:
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1345
if (!ContainingSymbol.
RequiresInstanceReceiver
() || ContainingSymbol is MethodSymbol { MethodKind: MethodKind.Constructor or MethodKind.DelegateInvoke or MethodKind.LambdaMethod })