You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/types.ts
+16-11Lines changed: 16 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -448,6 +448,14 @@ namespace ts {
448
448
ThisNodeOrAnySubNodesHasError=1<<17,// If this node or any of its children had an error
449
449
HasAggregatedChildData=1<<18,// If we've computed data from children and cached it in this node
450
450
451
+
// This flag will be set to true when the parse encounter dynamic import so that post-parsing process of module resolution
452
+
// will not walk the tree if the flag is not set. However, this flag is just a approximation because once it is set, the flag never get reset.
453
+
// (hence it is named "possiblyContainDynamicImport").
454
+
// During editing, if dynamic import is remove, incremental parsing will *NOT* update this flag. This will then causes walking of the tree during module resolution.
455
+
// However, the removal operation should not occur often and in the case of the removal, it is likely that users will add back the import anyway.
456
+
// The advantage of this approach is its simplicity. For the case of batch compilation, we garuntee that users won't have to pay the price of walking the tree if dynamic import isn't used.
// This flag will be set to true when the parse encounter dynamic import so that post-parsing process of module resolution
2309
-
// will not walk the tree if the flag is not set. However, this flag is just a approximation because once it is set, the flag never get reset.
2310
-
// (hence it is named "possiblyContainDynamicImport").
2311
-
// During editing, if dynamic import is remove, incremental parsing will *NOT* update this flag. This will then causes walking of the tree during module resolution.
2312
-
// However, the removal operation should not occur often and in the case of the removal, it is likely that users will add back the import anyway.
2313
-
// The advantage of this approach is its simplicity. For the case of batch compilation, we garuntee that users won't have to pay the price of walking the tree if dynamic import isn't used.
0 commit comments