1 write to Method
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.ValueChecks.cs (1)
59Method = method;
22 references to Method
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.ValueChecks.cs (19)
46/// <see cref="Method"/> will represent the `get` accessor and this will 51internal bool UseUpdatedEscapeRules => Method?.UseUpdatedEscapeRules == true; 53Method is { RefKind: not RefKind.None, ReturnType: { } returnType } && 90var method = replace(Method); 92Symbol symbol = ReferenceEquals(Symbol, Method) && method is not null ? method : Symbol; 95wasError = (Method is not null && method is null) || (SetMethod is not null && setMethod is null); 119public override string? ToString() => Method?.ToString(); 2309if (methodInvocationInfo.MethodInfo.Method?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true) 2645var method = methodInvocationInfo.MethodInfo.Method; 2738if (methodInfo.Method is not null && methodInfo.SetMethod is not null) 2740var getArgument = getReceiverCore(methodInfo.Method, receiver); 2756return getReceiverCore(methodInfo.Method, receiver); 2876if (!hasRefToRefStructThis(methodInfo.Method) && !hasRefToRefStructThis(methodInfo.SetMethod)) 2884Debug.Assert(methodInfo.Method?.IsExtensionMethod != false); 4888if (methodInfo.Method is null) 4895if (methodInfo.Method.IsEffectivelyReadOnly) 4908Parameters = methodInfo.Method.Parameters, 4944if (methodInfo.Method is null || methodInfo.Method.IsEffectivelyReadOnly)
Binder\Binder_Statements.cs (3)
1621Debug.Assert(ReferenceEquals(methodInvocationInfo.MethodInfo.Method, indexerSet)); 1657Debug.Assert(methodInvocationInfo.MethodInfo.Method is not null); 1658CheckInvocationArgMixing(node, in localMethodInvocationInfo, methodInvocationInfo.MethodInfo.Method, diagnostics);