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