9 types derived from ErrorTypeSymbol
Microsoft.CodeAnalysis.CSharp (9)
Symbols\ErrorTypeSymbol.cs (1)
587internal abstract class SubstitutedErrorTypeSymbol : ErrorTypeSymbol
Symbols\ExtendedErrorTypeSymbol.cs (1)
17internal sealed class ExtendedErrorTypeSymbol : ErrorTypeSymbol
Symbols\MissingMetadataTypeSymbol.cs (1)
22internal abstract class MissingMetadataTypeSymbol : ErrorTypeSymbol
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.cs (1)
20internal class NoPiaAmbiguousCanonicalTypeSymbol : ErrorTypeSymbol
Symbols\NoPiaIllegalGenericInstantiationSymbol.cs (1)
19internal class NoPiaIllegalGenericInstantiationSymbol : ErrorTypeSymbol
Symbols\NoPiaMissingCanonicalTypeSymbol.cs (1)
20internal class NoPiaMissingCanonicalTypeSymbol : ErrorTypeSymbol
Symbols\PlaceholderTypeArgumentSymbol.cs (1)
16internal sealed class PlaceholderTypeArgumentSymbol : ErrorTypeSymbol
Symbols\UnboundGenericType.cs (1)
47internal sealed class UnboundArgumentErrorTypeSymbol : ErrorTypeSymbol
Symbols\UnsupportedMetadataTypeSymbol.cs (1)
11internal sealed class UnsupportedMetadataTypeSymbol : ErrorTypeSymbol
125 references to ErrorTypeSymbol
Microsoft.CodeAnalysis.CSharp (125)
Binder\Binder_Attributes.cs (2)
172var errorType = (ErrorTypeSymbol)attributeTypeForBinding;
Binder\Binder_Deconstruct.cs (2)
309var operandPlaceholder = new BoundValuePlaceholder(syntax, ErrorTypeSymbol.UnknownResultType).MakeCompilerGenerated(); 314type: ErrorTypeSymbol.UnknownResultType) { WasCompilerGenerated = true }));
Binder\Binder_Expressions.cs (2)
3599Debug.Assert(methodResult.Result.ParamsElementTypeOpt.Type != (object)ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel); 5727identifierName, boundNode, badRight, isRef: false, ErrorTypeSymbol.UnknownResultType, hasErrors: true)
Binder\Binder_Lookup.cs (2)
203LookupMembersInErrorType(result, (ErrorTypeSymbol)type, name, arity, basesBeingResolved, options, originalBinder, diagnose, ref useSiteInfo); 220private void LookupMembersInErrorType(LookupResult result, ErrorTypeSymbol errorType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved, LookupOptions options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\Binder_Symbols.cs (5)
2260var errorType = (ErrorTypeSymbol)singleResult; 2548var errorQualifier = qualifierOpt as ErrorTypeSymbol; 2627DiagnosticInfo diagInfo = ((ErrorTypeSymbol)forwardedType).ErrorInfo;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1253expandedResult.Result.ParamsElementTypeOpt.Type != (object)ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel) 2560Debug.Assert(paramsElementTypeOpt.Type != (object)ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel); 4359paramsElementTypeOpt = TypeWithAnnotations.Create(ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1382Debug.Assert(badArg.Result.ParamsElementTypeOpt.Type != (object)ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel);
BoundTree\BoundExpression.cs (2)
279ErrorTypeSymbol? errorType = this.Type.OriginalDefinition as ErrorTypeSymbol;
Compilation\CSharpCompilation.cs (3)
59private NamedTypeSymbol? _lazyScriptClass = ErrorTypeSymbol.UnknownResultType; 1533if (ReferenceEquals(_lazyScriptClass, ErrorTypeSymbol.UnknownResultType)) 1535Interlocked.CompareExchange(ref _lazyScriptClass, BindScriptClass()!, ErrorTypeSymbol.UnknownResultType);
Compilation\CSharpSemanticModel.cs (10)
1979if (subpatternSymbol?.OriginalDefinition is ErrorTypeSymbol originalErrorType) 1994var originalErrorSymbol = s.OriginalDefinition as ErrorTypeSymbol; 2319var originalErrorSymbol = (object)type != null ? type.OriginalDefinition as ErrorTypeSymbol : null; 3408var originalErrorType = typeSymbol.OriginalDefinition as ErrorTypeSymbol; 3594var errorType = (ErrorTypeSymbol)namedType; 3754if ((object)typeOfThis == ErrorTypeSymbol.UnknownResultType)
DocumentationComments\DocumentationCommentIDVisitor.cs (1)
86public override object VisitErrorType(ErrorTypeSymbol symbol, StringBuilder builder)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
256public override object VisitErrorType(ErrorTypeSymbol symbol, StringBuilder builder)
Emitter\Model\PEModuleBuilder.cs (3)
979ErrorTypeSymbol errorType = (ErrorTypeSymbol)namedTypeSymbol.OriginalDefinition; 984errorType = (ErrorTypeSymbol)namedTypeSymbol;
Emitter\NoPia\EmbeddedTypesManager.cs (4)
41private NamedTypeSymbol _lazySystemStringType = ErrorTypeSymbol.UnknownResultType; 57if ((object)_lazySystemStringType == (object)ErrorTypeSymbol.UnknownResultType) 68if (TypeSymbol.Equals(Interlocked.CompareExchange(ref _lazySystemStringType, typeSymbol, ErrorTypeSymbol.UnknownResultType), ErrorTypeSymbol.UnknownResultType, TypeCompareKind.ConsiderEverything2))
Lowering\LocalRewriter\LocalRewriter_Event.cs (5)
128clearCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(removeDelegate), ErrorTypeSymbol.UnknownResultType); 170marshalCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, marshalArguments, ErrorTypeSymbol.UnknownResultType); 265getOrCreateCall = new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(fieldAccess), ErrorTypeSymbol.UnknownResultType); 287return new BoundBadExpression(syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(getOrCreateCall), ErrorTypeSymbol.UnknownResultType); 334ImmutableArray.Create(rewrittenReceiver, rewrittenArgument), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (2)
483helperCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 544lengthCall = new BoundBadExpression(fixedInitializer.Syntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(factory.Local(pinnedTemp)), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (2)
117exitCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType); 212enterCallExpr = new BoundBadExpression(lockSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create<BoundExpression>(boundLockTemp), ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
389newGuid = new BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 407callGetTypeFromCLSID = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
72type: ErrorTypeSymbol.UnknownResultType);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
463disposeCall = new BoundBadExpression(resourceSyntax, LookupResultKind.NotInvocable, ImmutableArray<Symbol?>.Empty, ImmutableArray.Create(disposedExpression), ErrorTypeSymbol.UnknownResultType);
Symbols\AbstractTypeMap.cs (1)
119return ((ErrorTypeSymbol)previous).Substitute(this);
Symbols\AssemblySymbol.cs (2)
360internal ErrorTypeSymbol CreateCycleInTypeForwarderErrorTypeSymbol(ref MetadataTypeName emittedName) 366internal ErrorTypeSymbol CreateMultipleForwardingErrorTypeSymbol(ref MetadataTypeName emittedName, ModuleSymbol forwardingModule, AssemblySymbol destination1, AssemblySymbol destination2)
Symbols\Attributes\PEAttributeData.cs (3)
21private NamedTypeSymbol? _lazyAttributeClass = ErrorTypeSymbol.UnknownResultType; // Indicates uninitialized. 77if ((object?)_lazyAttributeClass == ErrorTypeSymbol.UnknownResultType) 93Interlocked.CompareExchange(ref _lazyAttributeClass, (NamedTypeSymbol?)attributeClass, ErrorTypeSymbol.UnknownResultType); // Serves as a flag, so do it last.
Symbols\Compilation_WellKnownMembers.cs (4)
84if (_lazyWellKnownTypeMembers == null || ReferenceEquals(_lazyWellKnownTypeMembers[(int)member], ErrorTypeSymbol.UnknownResultType)) 92wellKnownTypeMembers[i] = ErrorTypeSymbol.UnknownResultType; 109Interlocked.CompareExchange(ref _lazyWellKnownTypeMembers[(int)member], result, ErrorTypeSymbol.UnknownResultType); 419if (wellKnownMember == null || wellKnownMember is ErrorTypeSymbol)
Symbols\ErrorMethodSymbol.cs (2)
16public static readonly ErrorMethodSymbol UnknownMethod = new ErrorMethodSymbol(ErrorTypeSymbol.UnknownResultType, ErrorTypeSymbol.UnknownResultType, string.Empty);
Symbols\ErrorTypeSymbol.cs (8)
21internal static readonly ErrorTypeSymbol UnknownResultType = new UnsupportedMetadataTypeSymbol(); 22internal static readonly ErrorTypeSymbol EmptyParamsCollectionElementTypeSentinel = new UnsupportedMetadataTypeSymbol(); 589private readonly ErrorTypeSymbol _originalDefinition; 592protected SubstitutedErrorTypeSymbol(ErrorTypeSymbol originalDefinition, TupleExtraData? tupleData = null) 658private readonly ErrorTypeSymbol _constructedFrom; 662public ConstructedErrorTypeSymbol(ErrorTypeSymbol constructedFrom, ImmutableArray<TypeWithAnnotations> typeArgumentsWithAnnotations, TupleExtraData? tupleData = null) : 663base((ErrorTypeSymbol)constructedFrom.OriginalDefinition, tupleData) 707public SubstitutedNestedErrorTypeSymbol(NamedTypeSymbol containingSymbol, ErrorTypeSymbol originalDefinition) :
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (2)
15private readonly ErrorTypeSymbol _container; 19public ErrorTypeParameterSymbol(ErrorTypeSymbol container, string name, int ordinal)
Symbols\ExtendedErrorTypeSymbol.cs (2)
90var candidate = candidateSymbols.IsEmpty ? null : candidateSymbols[0] as ErrorTypeSymbol;
Symbols\Metadata\PE\MetadataDecoder.cs (2)
503else if (typeSymbol is not ErrorTypeSymbol) 517Debug.Assert(typeSymbol is PENamedTypeSymbol || typeSymbol is ErrorTypeSymbol);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (10)
73private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.UnknownResultType; 75private NamedTypeSymbol _lazyDeclaredBaseType = ErrorTypeSymbol.UnknownResultType; 144internal NamedTypeSymbol lazyComImportCoClassType = ErrorTypeSymbol.UnknownResultType; 164(object)lazyComImportCoClassType == (object)ErrorTypeSymbol.UnknownResultType && 474if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) 476Interlocked.CompareExchange(ref _lazyBaseType, MakeAcyclicBaseType(), ErrorTypeSymbol.UnknownResultType); 505if (ReferenceEquals(_lazyDeclaredBaseType, ErrorTypeSymbol.UnknownResultType)) 524Interlocked.CompareExchange(ref _lazyDeclaredBaseType, baseType, ErrorTypeSymbol.UnknownResultType); 2358if (ReferenceEquals(uncommon.lazyComImportCoClassType, ErrorTypeSymbol.UnknownResultType)) 2363Interlocked.CompareExchange(ref uncommon.lazyComImportCoClassType, coClassType, ErrorTypeSymbol.UnknownResultType);
Symbols\MetadataOrSourceAssemblySymbol.cs (3)
190if (_lazySpecialTypeMembers == null || ReferenceEquals(_lazySpecialTypeMembers[(int)member], ErrorTypeSymbol.UnknownResultType)) 198specialTypeMembers[i] = ErrorTypeSymbol.UnknownResultType; 213Interlocked.CompareExchange(ref _lazySpecialTypeMembers[(int)member], result, ErrorTypeSymbol.UnknownResultType);
Symbols\MissingMetadataTypeSymbol.cs (2)
14/// A <see cref="MissingMetadataTypeSymbol"/> is a special kind of <see cref="ErrorTypeSymbol"/> that represents 124else if (ContainingType is ErrorTypeSymbol { ErrorInfo: { } info })
Symbols\NoPiaIllegalGenericInstantiationSymbol.cs (1)
61DiagnosticInfo? underlyingInfo = ((ErrorTypeSymbol)_underlyingSymbol).ErrorInfo;
Symbols\PublicModel\ErrorTypeSymbol.cs (2)
13private readonly Symbols.ErrorTypeSymbol _underlying; 15public ErrorTypeSymbol(Symbols.ErrorTypeSymbol underlying, CodeAnalysis.NullableAnnotation nullableAnnotation)
Symbols\ReducedExtensionMethodSymbol.cs (1)
190builder.Add(TypeWithAnnotations.Create(ErrorTypeSymbol.UnknownResultType));
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (6)
31private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.UnknownResultType; 34private NamedTypeSymbol _lazyDeclaredBaseType = ErrorTypeSymbol.UnknownResultType; 277if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) 296Interlocked.CompareExchange(ref _lazyBaseType, acyclicBase, ErrorTypeSymbol.UnknownResultType); 330if (ReferenceEquals(_lazyDeclaredBaseType, ErrorTypeSymbol.UnknownResultType)) 334Interlocked.CompareExchange(ref _lazyDeclaredBaseType, declaredBase, ErrorTypeSymbol.UnknownResultType);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
229return Retarget((ErrorTypeSymbol)type); 809public static ErrorTypeSymbol Retarget(ErrorTypeSymbol type) 1374public override Symbol VisitErrorType(ErrorTypeSymbol symbol, RetargetOptions options)
Symbols\Source\SourceAssemblySymbol.cs (1)
1419DiagnosticInfo info = ((ErrorTypeSymbol)forwarded).ErrorInfo;
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (4)
26private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.UnknownResultType; 39if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) 51if (ReferenceEquals(Interlocked.CompareExchange(ref _lazyBaseType, acyclicBase, ErrorTypeSymbol.UnknownResultType), ErrorTypeSymbol.UnknownResultType))
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (4)
18private NamedTypeSymbol _lazyEnumUnderlyingType = ErrorTypeSymbol.UnknownResultType; 28if (ReferenceEquals(_lazyEnumUnderlyingType, ErrorTypeSymbol.UnknownResultType)) 31if ((object)Interlocked.CompareExchange(ref _lazyEnumUnderlyingType, this.GetEnumUnderlyingType(diagnostics), ErrorTypeSymbol.UnknownResultType) == 32(object)ErrorTypeSymbol.UnknownResultType)
Symbols\SubstitutedNamedTypeSymbol.cs (4)
42private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.UnknownResultType; 163if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) 166Interlocked.CompareExchange(ref _lazyBaseType, baseType, ErrorTypeSymbol.UnknownResultType); 169Debug.Assert(!ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType));
Symbols\SymbolVisitor`2.cs (2)
136/// Called when visiting an <see cref="ErrorTypeSymbol" /> 143public virtual TResult VisitErrorType(ErrorTypeSymbol symbol, TArgument argument)
Symbols\UnboundGenericType.cs (1)
60public static readonly ErrorTypeSymbol Instance = new UnboundArgumentErrorTypeSymbol(string.Empty, new CSDiagnosticInfo(ErrorCode.ERR_UnexpectedUnboundGenericName));