File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -287,12 +287,13 @@ namespace ts {
287
287
}
288
288
289
289
export function getSymbolId(symbol: Symbol): SymbolId {
290
- if (!symbol.id) {
291
- symbol.id = nextSymbolId;
290
+ let id = symbol.id;
291
+ if (!id) {
292
+ symbol.id = id = nextSymbolId;
292
293
nextSymbolId++;
293
294
}
294
295
295
- return symbol. id;
296
+ return id;
296
297
}
297
298
298
299
export function isInstantiatedModule(node: ModuleDeclaration, preserveConstEnums: boolean) {
Original file line number Diff line number Diff line change @@ -4900,7 +4900,7 @@ namespace ts {
4900
4900
members ?: SymbolTable ; // Class, interface or object literal instance members
4901
4901
exports ?: SymbolTable ; // Module exports
4902
4902
globalExports ?: SymbolTable ; // Conditional global UMD exports
4903
- /* @internal */ id ? : SymbolId ; // Unique id (used to look up SymbolLinks)
4903
+ /* @internal */ id : SymbolId ; // Unique id (used to look up SymbolLinks)
4904
4904
/* @internal */ mergeId ?: number ; // Merge id (used to look up merged symbol)
4905
4905
/* @internal */ parent ?: Symbol ; // Parent symbol
4906
4906
/* @internal */ exportSymbol ?: Symbol ; // Exported symbol associated with this symbol
Original file line number Diff line number Diff line change @@ -5798,7 +5798,7 @@ namespace ts {
5798
5798
this . escapedName = name ;
5799
5799
this . declarations = undefined ;
5800
5800
this . valueDeclaration = undefined ;
5801
- this . id = undefined ;
5801
+ this . id = 0 ;
5802
5802
this . mergeId = undefined ;
5803
5803
this . parent = undefined ;
5804
5804
}
You can’t perform that action at this time.
0 commit comments