Remove unused SymbolLinks properties (#58393)

This commit is contained in:
Joost Koehoorn
2024-05-10 15:01:22 -07:00
committed by GitHub
parent fadc83b939
commit 0b37062eb0
2 changed files with 0 additions and 16 deletions
-4
View File
@@ -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:
-12
View File
@@ -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<string, Type>; // 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<SymbolId, TransientSymbol>; // 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<ModeAwareCacheKey, string>; // For symbols corresponding to external modules, a cache of incoming path -> module specifier name mappings
@@ -5957,12 +5952,6 @@ export interface SymbolLinks {
filteredIndexSymbolCache?: Map<string, Symbol> //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<T extends string | number | undefined = string
export interface NodeLinks {
flags: NodeCheckFlags; // Set of flags specific to Node
resolvedType?: Type; // Cached type of type node
resolvedEnumType?: Type; // Cached constraint type from enum jsdoc tag
resolvedSignature?: Signature; // Cached signature of signature node or call expression
resolvedSymbol?: Symbol; // Cached name resolution result
resolvedIndexInfo?: IndexInfo; // Cached indexing info resolution result