Skip to content

Commit f478257

Browse files
authored
Remove unused SymbolLinks["bindingElement"] (#60385)
1 parent da15ef2 commit f478257

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/compiler/checker.ts

-1
Original file line numberDiff line numberDiff line change
@@ -11677,7 +11677,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1167711677
const flags = SymbolFlags.Property | (e.initializer ? SymbolFlags.Optional : 0);
1167811678
const symbol = createSymbol(flags, text);
1167911679
symbol.links.type = getTypeFromBindingElement(e, includePatternInType, reportErrors);
11680-
symbol.links.bindingElement = e;
1168111680
members.set(symbol.escapedName, symbol);
1168211681
});
1168311682
const result = createAnonymousType(/*symbol*/ undefined, members, emptyArray, emptyArray, stringIndexInfo ? [stringIndexInfo] : emptyArray);

src/compiler/types.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6016,7 +6016,6 @@ export interface SymbolLinks {
60166016
exportsChecked?: boolean; // True if exports of external module have been checked
60176017
typeParametersChecked?: boolean; // True if type parameters of merged class and interface declarations have been checked.
60186018
isDeclarationWithCollidingName?: boolean; // True if symbol is block scoped redeclaration
6019-
bindingElement?: BindingElement; // Binding element associated with property symbol
60206019
originatingImport?: ImportDeclaration | ImportCall; // Import declaration which produced the symbol, present if the symbol is marked as uncallable but had call signatures in `resolveESModuleSymbol`
60216020
lateSymbol?: Symbol; // Late-bound symbol for a computed property
60226021
specifierCache?: Map<ModeAwareCacheKey, string>; // For symbols corresponding to external modules, a cache of incoming path -> module specifier name mappings

0 commit comments

Comments
 (0)