Skip to content

Commit c824406

Browse files
committed
Add some explanatory comments
1 parent 9e6c43b commit c824406

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/compiler/builder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ namespace ts {
113113
currentAffectedFilesSignatures: ESMap<Path, string> | undefined;
114114
/**
115115
* Newly computed visible to outside referencedSet
116+
* We need to store the updates separately in case the in-progress build is cancelled
117+
* and we need to roll back.
116118
*/
117119
currentAffectedFilesExportedModulesMap: BuilderState.ComputingExportedModulesMap | undefined;
118120
/**

src/compiler/builderState.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ namespace ts {
4343
/**
4444
* Contains the map of exported modules ReferencedSet=exported module files from the file if module emit is enabled
4545
* Otherwise undefined
46+
*
47+
* This is equivalent to referencedMap, but for the emitted .d.ts file.
4648
*/
4749
readonly exportedModulesMap: BuilderState.TwoWayMap<Path, Path> | undefined;
4850

0 commit comments

Comments
 (0)