Skip to content

Commit dbe5cd0

Browse files
author
Arnavion
committed
Add -noEmit compiler flag.
1 parent cd7fc0c commit dbe5cd0

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/compiler/commandLineParser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ module ts {
5454
paramType: Diagnostics.KIND,
5555
error: Diagnostics.Argument_for_module_option_must_be_commonjs_or_amd
5656
},
57+
{
58+
name: "noEmit",
59+
type: "boolean",
60+
description: Diagnostics.Do_not_emit_outputs,
61+
},
5762
{
5863
name: "noEmitOnError",
5964
type: "boolean",

src/compiler/diagnosticInformationMap.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ module ts {
387387
Do_not_erase_const_enum_declarations_in_generated_code: { code: 6007, category: DiagnosticCategory.Message, key: "Do not erase const enum declarations in generated code." },
388388
Do_not_emit_outputs_if_any_type_checking_errors_were_reported: { code: 6008, category: DiagnosticCategory.Message, key: "Do not emit outputs if any type checking errors were reported." },
389389
Do_not_emit_comments_to_output: { code: 6009, category: DiagnosticCategory.Message, key: "Do not emit comments to output." },
390+
Do_not_emit_outputs: { code: 6010, category: DiagnosticCategory.Message, key: "Do not emit outputs." },
390391
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES6_experimental: { code: 6015, category: DiagnosticCategory.Message, key: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 'ES6' (experimental)" },
391392
Specify_module_code_generation_Colon_commonjs_or_amd: { code: 6016, category: DiagnosticCategory.Message, key: "Specify module code generation: 'commonjs' or 'amd'" },
392393
Print_this_message: { code: 6017, category: DiagnosticCategory.Message, key: "Print this message." },

src/compiler/diagnosticMessages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,10 @@
15471547
"category": "Message",
15481548
"code": 6009
15491549
},
1550+
"Do not emit outputs.": {
1551+
"category": "Message",
1552+
"code": 6010
1553+
},
15501554
"Specify ECMAScript target version: 'ES3' (default), 'ES5', or 'ES6' (experimental)": {
15511555
"category": "Message",
15521556
"code": 6015

src/compiler/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,6 +1413,7 @@ module ts {
14131413
locale?: string;
14141414
mapRoot?: string;
14151415
module?: ModuleKind;
1416+
noEmit?: boolean;
14161417
noEmitOnError?: boolean;
14171418
noErrorTruncation?: boolean;
14181419
noImplicitAny?: boolean;

0 commit comments

Comments
 (0)