From 50214717e8d98a646b0c2da319194e2774b38095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Thu, 31 Oct 2024 20:27:49 +0100 Subject: [PATCH] Remove unused `SymbolLinks["bindingElement"]` --- src/compiler/checker.ts | 1 - src/compiler/types.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 88c71bbfdf088..76f8d9ddf5978 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -11677,7 +11677,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const flags = SymbolFlags.Property | (e.initializer ? SymbolFlags.Optional : 0); const symbol = createSymbol(flags, text); symbol.links.type = getTypeFromBindingElement(e, includePatternInType, reportErrors); - symbol.links.bindingElement = e; members.set(symbol.escapedName, symbol); }); const result = createAnonymousType(/*symbol*/ undefined, members, emptyArray, emptyArray, stringIndexInfo ? [stringIndexInfo] : emptyArray); diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 0a14e6ff14b6a..9b5908d71d9bc 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6016,7 +6016,6 @@ export interface SymbolLinks { exportsChecked?: boolean; // True if exports of external module have been checked 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 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