Skip to content

Commit 0b37062

Browse files
authored
Remove unused SymbolLinks properties (#58393)
1 parent fadc83b commit 0b37062

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,6 @@ import {
780780
JSDocAugmentsTag,
781781
JSDocCallbackTag,
782782
JSDocComment,
783-
JSDocEnumTag,
784783
JSDocFunctionType,
785784
JSDocImplementsTag,
786785
JSDocImportTag,
@@ -1286,7 +1285,6 @@ const enum TypeSystemPropertyName {
12861285
DeclaredType,
12871286
ResolvedReturnType,
12881287
ImmediateBaseConstraint,
1289-
EnumTagType,
12901288
ResolvedTypeArguments,
12911289
ResolvedBaseTypes,
12921290
WriteType,
@@ -10507,8 +10505,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1050710505
switch (propertyName) {
1050810506
case TypeSystemPropertyName.Type:
1050910507
return !!getSymbolLinks(target as Symbol).type;
10510-
case TypeSystemPropertyName.EnumTagType:
10511-
return !!(getNodeLinks(target as JSDocEnumTag).resolvedEnumType);
1051210508
case TypeSystemPropertyName.DeclaredType:
1051310509
return !!getSymbolLinks(target as Symbol).declaredType;
1051410510
case TypeSystemPropertyName.ResolvedBaseConstructorType:

src/compiler/types.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5918,10 +5918,7 @@ export interface SymbolLinks {
59185918
uniqueESSymbolType?: Type; // UniqueESSymbol type for a symbol
59195919
declaredType?: Type; // Type of class, interface, enum, type alias, or type parameter
59205920
typeParameters?: TypeParameter[]; // Type parameters of type alias (undefined if non-generic)
5921-
outerTypeParameters?: TypeParameter[]; // Outer type parameters of anonymous object type
59225921
instantiations?: Map<string, Type>; // Instantiations of generic type alias (undefined if non-generic)
5923-
aliasSymbol?: Symbol; // Alias associated with generic type alias instantiation
5924-
aliasTypeArguments?: readonly Type[] // Alias type arguments (if any)
59255922
inferredClassSymbol?: Map<SymbolId, TransientSymbol>; // Symbol of an inferred ES5 constructor function
59265923
mapper?: TypeMapper; // Type mapper for instantiation alias
59275924
referenced?: boolean; // True if alias symbol has been referenced as a value that can be emitted
@@ -5936,8 +5933,6 @@ export interface SymbolLinks {
59365933
typeParametersChecked?: boolean; // True if type parameters of merged class and interface declarations have been checked.
59375934
isDeclarationWithCollidingName?: boolean; // True if symbol is block scoped redeclaration
59385935
bindingElement?: BindingElement; // Binding element associated with property symbol
5939-
exportsSomeValue?: boolean; // True if module exports some value (not just types)
5940-
enumKind?: EnumKind; // Enum declaration classification
59415936
originatingImport?: ImportDeclaration | ImportCall; // Import declaration which produced the symbol, present if the symbol is marked as uncallable but had call signatures in `resolveESModuleSymbol`
59425937
lateSymbol?: Symbol; // Late-bound symbol for a computed property
59435938
specifierCache?: Map<ModeAwareCacheKey, string>; // For symbols corresponding to external modules, a cache of incoming path -> module specifier name mappings
@@ -5957,12 +5952,6 @@ export interface SymbolLinks {
59575952
filteredIndexSymbolCache?: Map<string, Symbol> //Symbol with applicable declarations
59585953
}
59595954

5960-
/** @internal */
5961-
export const enum EnumKind {
5962-
Numeric, // Numeric enum (each member has a TypeFlags.Enum type)
5963-
Literal, // Literal enum (each member has a TypeFlags.EnumLiteral type)
5964-
}
5965-
59665955
// dprint-ignore
59675956
/** @internal */
59685957
export const enum CheckFlags {
@@ -6119,7 +6108,6 @@ export interface EvaluatorResult<T extends string | number | undefined = string
61196108
export interface NodeLinks {
61206109
flags: NodeCheckFlags; // Set of flags specific to Node
61216110
resolvedType?: Type; // Cached type of type node
6122-
resolvedEnumType?: Type; // Cached constraint type from enum jsdoc tag
61236111
resolvedSignature?: Signature; // Cached signature of signature node or call expression
61246112
resolvedSymbol?: Symbol; // Cached name resolution result
61256113
resolvedIndexInfo?: IndexInfo; // Cached indexing info resolution result

0 commit comments

Comments
 (0)