Skip to content

Commit 6a7d2c0

Browse files
Restore redirect accessors.
1 parent 41faf73 commit 6a7d2c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiler/program.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,6 +2592,10 @@ namespace ts {
25922592
redirect.redirectInfo = { redirectTarget, unredirected };
25932593
sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0);
25942594
Object.defineProperties(redirect, {
2595+
id: {
2596+
get(this: SourceFile) { return this.redirectInfo!.redirectTarget.id; },
2597+
set(this: SourceFile, value: SourceFile["id"]) { this.redirectInfo!.redirectTarget.id = value; },
2598+
},
25952599
symbol: {
25962600
get(this: SourceFile) { return this.redirectInfo!.redirectTarget.symbol; },
25972601
set(this: SourceFile, value: SourceFile["symbol"]) { this.redirectInfo!.redirectTarget.symbol = value; },

0 commit comments

Comments
 (0)