diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c4823c1bd0e..ccaa760cb52 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -780,7 +780,6 @@ import { JSDocAugmentsTag, JSDocCallbackTag, JSDocComment, - JSDocEnumTag, JSDocFunctionType, JSDocImplementsTag, JSDocImportTag, @@ -1286,7 +1285,6 @@ const enum TypeSystemPropertyName { DeclaredType, ResolvedReturnType, ImmediateBaseConstraint, - EnumTagType, ResolvedTypeArguments, ResolvedBaseTypes, WriteType, @@ -10507,8 +10505,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { switch (propertyName) { case TypeSystemPropertyName.Type: return !!getSymbolLinks(target as Symbol).type; - case TypeSystemPropertyName.EnumTagType: - return !!(getNodeLinks(target as JSDocEnumTag).resolvedEnumType); case TypeSystemPropertyName.DeclaredType: return !!getSymbolLinks(target as Symbol).declaredType; case TypeSystemPropertyName.ResolvedBaseConstructorType: diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 1b737bd2613..0159c3a7ac6 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -5918,10 +5918,7 @@ export interface SymbolLinks { uniqueESSymbolType?: Type; // UniqueESSymbol type for a symbol declaredType?: Type; // Type of class, interface, enum, type alias, or type parameter typeParameters?: TypeParameter[]; // Type parameters of type alias (undefined if non-generic) - outerTypeParameters?: TypeParameter[]; // Outer type parameters of anonymous object type instantiations?: Map; // Instantiations of generic type alias (undefined if non-generic) - aliasSymbol?: Symbol; // Alias associated with generic type alias instantiation - aliasTypeArguments?: readonly Type[] // Alias type arguments (if any) inferredClassSymbol?: Map; // Symbol of an inferred ES5 constructor function mapper?: TypeMapper; // Type mapper for instantiation alias referenced?: boolean; // True if alias symbol has been referenced as a value that can be emitted @@ -5936,8 +5933,6 @@ export interface SymbolLinks { typeParametersChecked?: boolean; // True if type parameters of merged class and interface declarations have been checked. isDeclarationWithCollidingName?: boolean; // True if symbol is block scoped redeclaration bindingElement?: BindingElement; // Binding element associated with property symbol - exportsSomeValue?: boolean; // True if module exports some value (not just types) - enumKind?: EnumKind; // Enum declaration classification originatingImport?: ImportDeclaration | ImportCall; // Import declaration which produced the symbol, present if the symbol is marked as uncallable but had call signatures in `resolveESModuleSymbol` lateSymbol?: Symbol; // Late-bound symbol for a computed property specifierCache?: Map; // For symbols corresponding to external modules, a cache of incoming path -> module specifier name mappings @@ -5957,12 +5952,6 @@ export interface SymbolLinks { filteredIndexSymbolCache?: Map //Symbol with applicable declarations } -/** @internal */ -export const enum EnumKind { - Numeric, // Numeric enum (each member has a TypeFlags.Enum type) - Literal, // Literal enum (each member has a TypeFlags.EnumLiteral type) -} - // dprint-ignore /** @internal */ export const enum CheckFlags { @@ -6119,7 +6108,6 @@ export interface EvaluatorResult