Skip to content

Commit 69094b5

Browse files
committed
Updated LKG
1 parent 62ba369 commit 69094b5

File tree

6 files changed

+74
-4
lines changed

6 files changed

+74
-4
lines changed

bin/tsc.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@ var ts;
10921092
Type_expected_0_is_a_reserved_word_in_strict_mode: { code: 1215, category: ts.DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode" },
10931093
Type_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: { code: 1216, category: ts.DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode." },
10941094
Export_assignment_is_not_supported_when_module_flag_is_system: { code: 1218, category: ts.DiagnosticCategory.Error, key: "Export assignment is not supported when '--module' flag is 'system'." },
1095+
Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Specify_experimentalDecorators_to_remove_this_warning: { code: 1219, category: ts.DiagnosticCategory.Error, key: "Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning." },
10951096
Duplicate_identifier_0: { code: 2300, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." },
10961097
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: ts.DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." },
10971098
Static_members_cannot_reference_class_type_parameters: { code: 2302, category: ts.DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." },
@@ -1425,6 +1426,9 @@ var ts;
14251426
Specifies_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: { code: 6060, category: ts.DiagnosticCategory.Message, key: "Specifies the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)." },
14261427
NEWLINE: { code: 6061, category: ts.DiagnosticCategory.Message, key: "NEWLINE" },
14271428
Argument_for_newLine_option_must_be_CRLF_or_LF: { code: 6062, category: ts.DiagnosticCategory.Error, key: "Argument for '--newLine' option must be 'CRLF' or 'LF'." },
1429+
Option_experimentalDecorators_must_also_be_specified_when_option_emitDecoratorMetadata_is_specified: { code: 6064, category: ts.DiagnosticCategory.Error, key: "Option 'experimentalDecorators' must also be specified when option 'emitDecoratorMetadata' is specified." },
1430+
Enables_experimental_support_for_ES7_decorators: { code: 6065, category: ts.DiagnosticCategory.Message, key: "Enables experimental support for ES7 decorators." },
1431+
Enables_experimental_support_for_emitting_type_metadata_for_decorators: { code: 6066, category: ts.DiagnosticCategory.Message, key: "Enables experimental support for emitting type metadata for decorators." },
14281432
Variable_0_implicitly_has_an_1_type: { code: 7005, category: ts.DiagnosticCategory.Error, key: "Variable '{0}' implicitly has an '{1}' type." },
14291433
Parameter_0_implicitly_has_an_1_type: { code: 7006, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' implicitly has an '{1}' type." },
14301434
Member_0_implicitly_has_an_1_type: { code: 7008, category: ts.DiagnosticCategory.Error, key: "Member '{0}' implicitly has an '{1}' type." },
@@ -15586,6 +15590,9 @@ var ts;
1558615590
if (!ts.nodeCanBeDecorated(node)) {
1558715591
return;
1558815592
}
15593+
if (!compilerOptions.experimentalDecorators) {
15594+
error(node, ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Specify_experimentalDecorators_to_remove_this_warning);
15595+
}
1558915596
if (compilerOptions.emitDecoratorMetadata) {
1559015597
switch (node.kind) {
1559115598
case 202:
@@ -25547,6 +25554,10 @@ var ts;
2554725554
diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_noEmit_cannot_be_specified_with_option_declaration));
2554825555
}
2554925556
}
25557+
if (options.emitDecoratorMetadata &&
25558+
!options.experimentalDecorators) {
25559+
diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_experimentalDecorators_must_also_be_specified_when_option_emitDecoratorMetadata_is_specified));
25560+
}
2555025561
}
2555125562
}
2555225563
ts.createProgram = createProgram;
@@ -25740,10 +25751,16 @@ var ts;
2574025751
type: "boolean",
2574125752
description: ts.Diagnostics.Watch_input_files
2574225753
},
25754+
{
25755+
name: "experimentalDecorators",
25756+
type: "boolean",
25757+
description: ts.Diagnostics.Enables_experimental_support_for_ES7_decorators
25758+
},
2574325759
{
2574425760
name: "emitDecoratorMetadata",
2574525761
type: "boolean",
25746-
experimental: true
25762+
experimental: true,
25763+
description: ts.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators
2574725764
}
2574825765
];
2574925766
function parseCommandLine(commandLine) {

bin/tsserver.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@ var ts;
10921092
Type_expected_0_is_a_reserved_word_in_strict_mode: { code: 1215, category: ts.DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode" },
10931093
Type_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: { code: 1216, category: ts.DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode." },
10941094
Export_assignment_is_not_supported_when_module_flag_is_system: { code: 1218, category: ts.DiagnosticCategory.Error, key: "Export assignment is not supported when '--module' flag is 'system'." },
1095+
Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Specify_experimentalDecorators_to_remove_this_warning: { code: 1219, category: ts.DiagnosticCategory.Error, key: "Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning." },
10951096
Duplicate_identifier_0: { code: 2300, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." },
10961097
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: ts.DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." },
10971098
Static_members_cannot_reference_class_type_parameters: { code: 2302, category: ts.DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." },
@@ -1425,6 +1426,9 @@ var ts;
14251426
Specifies_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: { code: 6060, category: ts.DiagnosticCategory.Message, key: "Specifies the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)." },
14261427
NEWLINE: { code: 6061, category: ts.DiagnosticCategory.Message, key: "NEWLINE" },
14271428
Argument_for_newLine_option_must_be_CRLF_or_LF: { code: 6062, category: ts.DiagnosticCategory.Error, key: "Argument for '--newLine' option must be 'CRLF' or 'LF'." },
1429+
Option_experimentalDecorators_must_also_be_specified_when_option_emitDecoratorMetadata_is_specified: { code: 6064, category: ts.DiagnosticCategory.Error, key: "Option 'experimentalDecorators' must also be specified when option 'emitDecoratorMetadata' is specified." },
1430+
Enables_experimental_support_for_ES7_decorators: { code: 6065, category: ts.DiagnosticCategory.Message, key: "Enables experimental support for ES7 decorators." },
1431+
Enables_experimental_support_for_emitting_type_metadata_for_decorators: { code: 6066, category: ts.DiagnosticCategory.Message, key: "Enables experimental support for emitting type metadata for decorators." },
14281432
Variable_0_implicitly_has_an_1_type: { code: 7005, category: ts.DiagnosticCategory.Error, key: "Variable '{0}' implicitly has an '{1}' type." },
14291433
Parameter_0_implicitly_has_an_1_type: { code: 7006, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' implicitly has an '{1}' type." },
14301434
Member_0_implicitly_has_an_1_type: { code: 7008, category: ts.DiagnosticCategory.Error, key: "Member '{0}' implicitly has an '{1}' type." },
@@ -2900,10 +2904,16 @@ var ts;
29002904
type: "boolean",
29012905
description: ts.Diagnostics.Watch_input_files
29022906
},
2907+
{
2908+
name: "experimentalDecorators",
2909+
type: "boolean",
2910+
description: ts.Diagnostics.Enables_experimental_support_for_ES7_decorators
2911+
},
29032912
{
29042913
name: "emitDecoratorMetadata",
29052914
type: "boolean",
2906-
experimental: true
2915+
experimental: true,
2916+
description: ts.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators
29072917
}
29082918
];
29092919
function parseCommandLine(commandLine) {
@@ -15970,6 +15980,9 @@ var ts;
1597015980
if (!ts.nodeCanBeDecorated(node)) {
1597115981
return;
1597215982
}
15983+
if (!compilerOptions.experimentalDecorators) {
15984+
error(node, ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Specify_experimentalDecorators_to_remove_this_warning);
15985+
}
1597315986
if (compilerOptions.emitDecoratorMetadata) {
1597415987
switch (node.kind) {
1597515988
case 202:
@@ -25931,6 +25944,10 @@ var ts;
2593125944
diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_noEmit_cannot_be_specified_with_option_declaration));
2593225945
}
2593325946
}
25947+
if (options.emitDecoratorMetadata &&
25948+
!options.experimentalDecorators) {
25949+
diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_experimentalDecorators_must_also_be_specified_when_option_emitDecoratorMetadata_is_specified));
25950+
}
2593425951
}
2593525952
}
2593625953
ts.createProgram = createProgram;

bin/typescript.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ declare module "typescript" {
11151115
version?: boolean;
11161116
watch?: boolean;
11171117
isolatedModules?: boolean;
1118+
experimentalDecorators?: boolean;
11181119
emitDecoratorMetadata?: boolean;
11191120
[option: string]: string | number | boolean;
11201121
}

bin/typescript.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1840,6 +1840,7 @@ var ts;
18401840
Type_expected_0_is_a_reserved_word_in_strict_mode: { code: 1215, category: ts.DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode" },
18411841
Type_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: { code: 1216, category: ts.DiagnosticCategory.Error, key: "Type expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode." },
18421842
Export_assignment_is_not_supported_when_module_flag_is_system: { code: 1218, category: ts.DiagnosticCategory.Error, key: "Export assignment is not supported when '--module' flag is 'system'." },
1843+
Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Specify_experimentalDecorators_to_remove_this_warning: { code: 1219, category: ts.DiagnosticCategory.Error, key: "Experimental support for decorators is a feature that is subject to change in a future release. Specify '--experimentalDecorators' to remove this warning." },
18431844
Duplicate_identifier_0: { code: 2300, category: ts.DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." },
18441845
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: ts.DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." },
18451846
Static_members_cannot_reference_class_type_parameters: { code: 2302, category: ts.DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." },
@@ -2173,6 +2174,9 @@ var ts;
21732174
Specifies_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: { code: 6060, category: ts.DiagnosticCategory.Message, key: "Specifies the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)." },
21742175
NEWLINE: { code: 6061, category: ts.DiagnosticCategory.Message, key: "NEWLINE" },
21752176
Argument_for_newLine_option_must_be_CRLF_or_LF: { code: 6062, category: ts.DiagnosticCategory.Error, key: "Argument for '--newLine' option must be 'CRLF' or 'LF'." },
2177+
Option_experimentalDecorators_must_also_be_specified_when_option_emitDecoratorMetadata_is_specified: { code: 6064, category: ts.DiagnosticCategory.Error, key: "Option 'experimentalDecorators' must also be specified when option 'emitDecoratorMetadata' is specified." },
2178+
Enables_experimental_support_for_ES7_decorators: { code: 6065, category: ts.DiagnosticCategory.Message, key: "Enables experimental support for ES7 decorators." },
2179+
Enables_experimental_support_for_emitting_type_metadata_for_decorators: { code: 6066, category: ts.DiagnosticCategory.Message, key: "Enables experimental support for emitting type metadata for decorators." },
21762180
Variable_0_implicitly_has_an_1_type: { code: 7005, category: ts.DiagnosticCategory.Error, key: "Variable '{0}' implicitly has an '{1}' type." },
21772181
Parameter_0_implicitly_has_an_1_type: { code: 7006, category: ts.DiagnosticCategory.Error, key: "Parameter '{0}' implicitly has an '{1}' type." },
21782182
Member_0_implicitly_has_an_1_type: { code: 7008, category: ts.DiagnosticCategory.Error, key: "Member '{0}' implicitly has an '{1}' type." },
@@ -18932,6 +18936,9 @@ var ts;
1893218936
if (!ts.nodeCanBeDecorated(node)) {
1893318937
return;
1893418938
}
18939+
if (!compilerOptions.experimentalDecorators) {
18940+
error(node, ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Specify_experimentalDecorators_to_remove_this_warning);
18941+
}
1893518942
if (compilerOptions.emitDecoratorMetadata) {
1893618943
// we only need to perform these checks if we are emitting serialized type metadata for the target of a decorator.
1893718944
switch (node.kind) {
@@ -30183,6 +30190,10 @@ var ts;
3018330190
diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_noEmit_cannot_be_specified_with_option_declaration));
3018430191
}
3018530192
}
30193+
if (options.emitDecoratorMetadata &&
30194+
!options.experimentalDecorators) {
30195+
diagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_experimentalDecorators_must_also_be_specified_when_option_emitDecoratorMetadata_is_specified));
30196+
}
3018630197
}
3018730198
}
3018830199
ts.createProgram = createProgram;
@@ -30377,10 +30388,16 @@ var ts;
3037730388
type: "boolean",
3037830389
description: ts.Diagnostics.Watch_input_files
3037930390
},
30391+
{
30392+
name: "experimentalDecorators",
30393+
type: "boolean",
30394+
description: ts.Diagnostics.Enables_experimental_support_for_ES7_decorators
30395+
},
3038030396
{
3038130397
name: "emitDecoratorMetadata",
3038230398
type: "boolean",
30383-
experimental: true
30399+
experimental: true,
30400+
description: ts.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators
3038430401
}
3038530402
];
3038630403
function parseCommandLine(commandLine) {

bin/typescriptServices.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,7 @@ declare module ts {
11151115
version?: boolean;
11161116
watch?: boolean;
11171117
isolatedModules?: boolean;
1118+
experimentalDecorators?: boolean;
11181119
emitDecoratorMetadata?: boolean;
11191120
[option: string]: string | number | boolean;
11201121
}

0 commit comments

Comments
 (0)