4 instantiations of ErrorMethodSymbol
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Invocation.cs (2)
1946
method = new
ErrorMethodSymbol
(methodContainer, returnType, name);
2174
MethodSymbol method = new
ErrorMethodSymbol
(methodContainer, returnType, string.Empty);
Lowering\LocalRewriter\LocalRewriter.cs (1)
632
return new
ErrorMethodSymbol
(container, returnType, "Missing");
Symbols\ErrorMethodSymbol.cs (1)
16
public static readonly ErrorMethodSymbol UnknownMethod = new
ErrorMethodSymbol
(ErrorTypeSymbol.UnknownResultType, ErrorTypeSymbol.UnknownResultType, string.Empty);
20 references to ErrorMethodSymbol
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Await.cs (1)
349
if (getAwaiterMethod is
ErrorMethodSymbol
||
Binder\Binder_Statements.cs (1)
4161
if (patternMethodSymbol is
ErrorMethodSymbol
||
Binder\WithPrimaryConstructorParametersBinder.cs (2)
18
private MethodSymbol? _lazyPrimaryCtorWithParameters =
ErrorMethodSymbol
.UnknownMethod;
50
if (_lazyPrimaryCtorWithParameters == (object)
ErrorMethodSymbol
.UnknownMethod)
BoundTree\Constructors.cs (2)
206
Debug.Assert(method is
ErrorMethodSymbol
|| arguments[i].Kind == BoundKind.ArgListOperator);
226
hasErrors: method.OriginalDefinition is
ErrorMethodSymbol
Emitter\NoPia\EmbeddedTypesManager.cs (4)
51
_lazyWellKnownTypeMethods[i] =
ErrorMethodSymbol
.UnknownMethod;
92
if ((object)lazyMethod == (object)
ErrorMethodSymbol
.UnknownMethod)
105
if (Interlocked.CompareExchange(ref lazyMethod, symbol,
ErrorMethodSymbol
.UnknownMethod) ==
ErrorMethodSymbol
.UnknownMethod)
FlowAnalysis\NullableWalker.cs (2)
6870
Debug.Assert(method is
ErrorMethodSymbol
);
8173
if (containingType is null || containingType.IsErrorType() || symbol is
ErrorMethodSymbol
)
Lowering\SyntheticBoundNodeFactory.cs (1)
855
type: method.ReturnType, hasErrors: method.OriginalDefinition is
ErrorMethodSymbol
)
Operations\CSharpOperationFactory.cs (2)
711
if (boundObjectCreationExpression.ResultKind == LookupResultKind.OverloadResolutionFailure || constructor.OriginalDefinition is
ErrorMethodSymbol
)
887
if (accessor == null || boundObjectInitializerMember.ResultKind == LookupResultKind.OverloadResolutionFailure || accessor.OriginalDefinition is
ErrorMethodSymbol
)
Operations\CSharpOperationFactory_Methods.cs (1)
122
resultKind == LookupResultKind.OverloadResolutionFailure || targetMethod?.OriginalDefinition is
ErrorMethodSymbol
;
Symbols\ErrorMethodSymbol.cs (1)
16
public static readonly
ErrorMethodSymbol
UnknownMethod = new ErrorMethodSymbol(ErrorTypeSymbol.UnknownResultType, ErrorTypeSymbol.UnknownResultType, string.Empty);
Symbols\Source\SourceTypeParameterSymbol.cs (3)
764
private MethodSymbol _lazyOverriddenMethod =
ErrorMethodSymbol
.UnknownMethod;
809
if (ReferenceEquals(_lazyOverriddenMethod,
ErrorMethodSymbol
.UnknownMethod))
811
Interlocked.CompareExchange(ref _lazyOverriddenMethod, this.GetOverriddenMethod(_overridingMethod),
ErrorMethodSymbol
.UnknownMethod);