Emit readable BuilderFileEmit kind (#43221)

This commit is contained in:
Sheetal Nandi 2021-03-12 14:32:50 -08:00 committed by GitHub
parent 82bfe5ad93
commit d2cb05a6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 111 additions and 109 deletions

View File

@ -238,7 +238,7 @@ interface Symbol {
function generateBuildInfoProgramBaseline(sys: System, originalWriteFile: System["writeFile"], buildInfoPath: string, buildInfo: BuildInfo) {
type ProgramBuildInfoDiagnostic = string | [string, readonly ReusableDiagnostic[]];
type ProgramBuilderInfoFilePendingEmit = [string, BuilderFileEmit];
type ProgramBuilderInfoFilePendingEmit = [string, "DtsOnly" | "Full"];
interface ProgramBuildInfo {
fileNames: readonly string[];
fileNamesList: readonly (readonly string[])[] | undefined;
@ -266,7 +266,9 @@ interface Symbol {
),
affectedFilesPendingEmit: buildInfo.program.affectedFilesPendingEmit?.map(([fileId, emitKind]) => [
toFileName(fileId),
emitKind
emitKind === BuilderFileEmit.DtsOnly ? "DtsOnly" :
emitKind === BuilderFileEmit.Full ? "Full" :
Debug.assertNever(emitKind)
]),
};
const version = buildInfo.version === ts.version ? fakes.version : buildInfo.version;

View File

@ -325,19 +325,19 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
"affectedFilesPendingEmit": [
[
"../../animals/animal.ts",
1
"Full"
],
[
"../../animals/dog.ts",
1
"Full"
],
[
"../../animals/index.ts",
1
"Full"
],
[
"../../core/utilities.ts",
1
"Full"
]
]
},

View File

@ -390,15 +390,15 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
"affectedFilesPendingEmit": [
[
"../bar.ts",
1
"Full"
],
[
"../index.ts",
0
"DtsOnly"
],
[
"../lazyindex.ts",
0
"DtsOnly"
]
]
},

View File

@ -137,15 +137,15 @@ Semantic diagnostics in builder refreshed for::
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},

View File

@ -137,11 +137,11 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
"affectedFilesPendingEmit": [
[
"../src/hello.json",
1
"Full"
],
[
"../src/index.ts",
1
"Full"
]
]
},

View File

@ -289,15 +289,15 @@ exports.multiply = multiply;
"affectedFilesPendingEmit": [
[
"../core/anothermodule.d.ts",
1
"Full"
],
[
"../core/index.d.ts",
1
"Full"
],
[
"./index.ts",
1
"Full"
]
]
},

View File

@ -171,7 +171,7 @@ exports.A = A;
"affectedFilesPendingEmit": [
[
"./b.ts",
1
"Full"
]
]
},

View File

@ -385,19 +385,19 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../../animals/animal.ts",
1
"Full"
],
[
"../../animals/dog.ts",
1
"Full"
],
[
"../../animals/index.ts",
1
"Full"
],
[
"../../core/utilities.ts",
1
"Full"
]
]
},
@ -648,19 +648,19 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../../animals/animal.ts",
1
"Full"
],
[
"../../animals/dog.ts",
1
"Full"
],
[
"../../animals/index.ts",
1
"Full"
],
[
"../../core/utilities.ts",
1
"Full"
]
]
},

View File

@ -418,7 +418,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../src/main.ts",
1
"Full"
]
]
},

View File

@ -615,7 +615,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"./index.ts",
1
"Full"
]
]
},
@ -748,7 +748,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"./index.ts",
1
"Full"
]
]
},

View File

@ -617,7 +617,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"./index.ts",
1
"Full"
]
]
},
@ -750,7 +750,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"./index.ts",
1
"Full"
]
]
},

View File

@ -467,19 +467,19 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
0
"DtsOnly"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
0
"DtsOnly"
]
]
},
@ -1173,19 +1173,19 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
0
"DtsOnly"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
0
"DtsOnly"
]
]
},

View File

@ -469,19 +469,19 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
0
"DtsOnly"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
0
"DtsOnly"
]
]
},
@ -1178,19 +1178,19 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
0
"DtsOnly"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
0
"DtsOnly"
]
]
},

View File

@ -438,11 +438,11 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/indirectclass.ts",
1
"Full"
]
]
},
@ -1123,11 +1123,11 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/indirectclass.ts",
1
"Full"
]
]
},

View File

@ -158,27 +158,27 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
1
"Full"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
1
"Full"
],
[
"./src/nochangefile.ts",
1
"Full"
],
[
"./src/nochangefilewithemitspecificerror.ts",
1
"Full"
]
]
},
@ -743,19 +743,19 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
0
"DtsOnly"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
0
"DtsOnly"
]
]
},

View File

@ -159,27 +159,27 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
1
"Full"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
1
"Full"
],
[
"./src/nochangefile.ts",
1
"Full"
],
[
"./src/nochangefilewithemitspecificerror.ts",
1
"Full"
]
]
},
@ -747,19 +747,19 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
0
"DtsOnly"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
0
"DtsOnly"
]
]
},

View File

@ -158,27 +158,27 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/directuse.ts",
1
"Full"
],
[
"./src/indirectclass.ts",
1
"Full"
],
[
"./src/indirectuse.ts",
1
"Full"
],
[
"./src/nochangefile.ts",
1
"Full"
],
[
"./src/nochangefilewithemitspecificerror.ts",
1
"Full"
]
]
},
@ -705,11 +705,11 @@ exitCode:: ExitStatus.Success
"affectedFilesPendingEmit": [
[
"./src/class.ts",
1
"Full"
],
[
"./src/indirectclass.ts",
1
"Full"
]
]
},

View File

@ -138,15 +138,15 @@ Semantic diagnostics in builder refreshed for::
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},

View File

@ -133,15 +133,15 @@ Semantic diagnostics in builder refreshed for::
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},

View File

@ -151,15 +151,15 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},
@ -490,7 +490,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../src/main.ts",
1
"Full"
]
]
},

View File

@ -152,15 +152,15 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},
@ -507,7 +507,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../src/main.ts",
1
"Full"
]
]
},

View File

@ -156,15 +156,15 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},
@ -493,7 +493,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../src/main.ts",
1
"Full"
]
]
},

View File

@ -151,15 +151,15 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},
@ -504,7 +504,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../src/main.ts",
1
"Full"
]
]
},

View File

@ -151,15 +151,15 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},
@ -490,7 +490,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../src/main.ts",
1
"Full"
]
]
},

View File

@ -152,15 +152,15 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../shared/types/db.ts",
1
"Full"
],
[
"../src/main.ts",
1
"Full"
],
[
"../src/other.ts",
1
"Full"
]
]
},
@ -507,7 +507,7 @@ exitCode:: ExitStatus.undefined
"affectedFilesPendingEmit": [
[
"../src/main.ts",
1
"Full"
]
]
},