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