21 references to RequiresInstanceReceiver
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.ValueChecks.cs (6)
623
receiver = otherSymbol.
RequiresInstanceReceiver
()
1626
return symbol.
RequiresInstanceReceiver
()
2142
if (!symbol.
RequiresInstanceReceiver
())
2591
if (!methodInfo.Symbol.
RequiresInstanceReceiver
())
2667
if (!methodInfo.Symbol.
RequiresInstanceReceiver
())
2791
if (!symbol.
RequiresInstanceReceiver
())
Binder\Binder_Expressions.cs (2)
2253
if (!member.
RequiresInstanceReceiver
())
8808
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
() &&
10762
if (member.
RequiresInstanceReceiver
())
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
665
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 })