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