1 write to Method
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.ValueChecks.cs (1)
59
Method
= 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
51
internal bool UseUpdatedEscapeRules =>
Method
?.UseUpdatedEscapeRules == true;
53
Method
is { RefKind: not RefKind.None, ReturnType: { } returnType } &&
90
var method = replace(
Method
);
92
Symbol symbol = ReferenceEquals(Symbol,
Method
) && method is not null ? method : Symbol;
95
wasError = (
Method
is not null && method is null) || (SetMethod is not null && setMethod is null);
119
public override string? ToString() =>
Method
?.ToString();
2326
if (methodInvocationInfo.MethodInfo.
Method
?.RequiresInstanceReceiver == true && methodInvocationInfo.Receiver?.Type?.IsRefLikeOrAllowsRefLikeType() == true)
2662
var method = methodInvocationInfo.MethodInfo.
Method
;
2755
if (methodInfo.
Method
is not null && methodInfo.SetMethod is not null)
2757
var getArgument = getReceiverCore(methodInfo.
Method
, receiver);
2773
return getReceiverCore(methodInfo.
Method
, receiver);
2893
if (!hasRefToRefStructThis(methodInfo.
Method
) && !hasRefToRefStructThis(methodInfo.SetMethod))
2901
Debug.Assert(methodInfo.
Method
?.IsExtensionMethod != false);
4913
if (methodInfo.
Method
is null)
4920
if (methodInfo.
Method
.IsEffectivelyReadOnly)
4933
Parameters = methodInfo.
Method
.Parameters,
4969
if (methodInfo.
Method
is null || methodInfo.
Method
.IsEffectivelyReadOnly)
Binder\Binder_Statements.cs (3)
1622
Debug.Assert(ReferenceEquals(methodInvocationInfo.MethodInfo.
Method
, indexerSet));
1658
Debug.Assert(methodInvocationInfo.MethodInfo.
Method
is not null);
1659
CheckInvocationArgMixing(node, in localMethodInvocationInfo, methodInvocationInfo.MethodInfo.
Method
, diagnostics);