1 write to Method
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.ValueChecks.cs (1)
60Method = method;
22 references to Method
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (19)
47/// <see cref="Method"/> will represent the `get` accessor and this will 52internal bool UseUpdatedEscapeRules => Method?.UseUpdatedEscapeRules == true; 54Method is { RefKind: not RefKind.None, ReturnType: { } returnType } && 91var method = replace(Method); 93Symbol symbol = ReferenceEquals(Symbol, Method) && method is not null ? method : Symbol; 96wasError = (Method is not null && method is null) || (SetMethod is not null && setMethod is null); 120public override string? ToString() => Method?.ToString(); 2279if (methodInvocationInfo.MethodInfo.Method?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true) 2620var method = methodInvocationInfo.MethodInfo.Method; 2713if (methodInfo.Method is not null && methodInfo.SetMethod is not null) 2715var getArgument = getReceiverCore(methodInfo.Method, receiver); 2731return getReceiverCore(methodInfo.Method, receiver); 2851if (!hasRefToRefStructThis(methodInfo.Method) && !hasRefToRefStructThis(methodInfo.SetMethod)) 2859Debug.Assert(methodInfo.Method?.IsExtensionMethod != false); 4860if (methodInfo.Method is null) 4867if (methodInfo.Method.IsEffectivelyReadOnly) 4880Parameters = methodInfo.Method.Parameters, 4916if (methodInfo.Method is null || methodInfo.Method.IsEffectivelyReadOnly)
Binder\Binder_Statements.cs (3)
1616Debug.Assert(ReferenceEquals(methodInvocationInfo.MethodInfo.Method, indexerSet)); 1652Debug.Assert(methodInvocationInfo.MethodInfo.Method is not null); 1653CheckInvocationArgMixing(node, in localMethodInvocationInfo, _localScopeDepth, methodInvocationInfo.MethodInfo.Method, diagnostics);