We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c55fc0 commit 2dfa9cfCopy full SHA for 2dfa9cf
src/compiler/types.ts
@@ -3822,10 +3822,11 @@ namespace ts {
3822
}
3823
3824
/* @internal */
3825
+ /** "Structure" refers to the SourceFile graph of a Program linked by module resolutions. */
3826
export const enum StructureIsReused {
- Not = 0,
3827
- SafeModules = 1 << 0,
3828
- Completely = 1 << 1,
+ Not = 0, // The entire Program must be (re)created.
+ SafeModules = 1 << 0, // SourceFile objects need to be rediscovered, but module resolutions can be reused.
3829
+ Completely = 1 << 1, // SourceFile objects and module resolutions can be reused from an old Program.
3830
3831
3832
export type CustomTransformerFactory = (context: TransformationContext) => CustomTransformer;
0 commit comments