Skip to content

Commit f531ff8

Browse files
committedMay 30, 2015
Merge pull request #3308 from Microsoft/fixJSDocErrorCode
Fix JSDoc error code for to avoid duplicate error code
2 parents 675679a + 77b46a2 commit f531ff8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

Diff for: ‎src/compiler/diagnosticInformationMap.generated.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ module ts {
177177
Generators_are_only_available_when_targeting_ECMAScript_6_or_higher: { code: 1219, category: DiagnosticCategory.Error, key: "Generators are only available when targeting ECMAScript 6 or higher." },
178178
Generators_are_not_allowed_in_an_ambient_context: { code: 1220, category: DiagnosticCategory.Error, key: "Generators are not allowed in an ambient context." },
179179
An_overload_signature_cannot_be_declared_as_a_generator: { code: 1221, category: DiagnosticCategory.Error, key: "An overload signature cannot be declared as a generator." },
180-
_0_tag_already_specified: { code: 1219, category: DiagnosticCategory.Error, key: "'{0}' tag already specified." },
180+
_0_tag_already_specified: { code: 1222, category: DiagnosticCategory.Error, key: "'{0}' tag already specified." },
181181
Duplicate_identifier_0: { code: 2300, category: DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." },
182182
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: { code: 2301, category: DiagnosticCategory.Error, key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor." },
183183
Static_members_cannot_reference_class_type_parameters: { code: 2302, category: DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." },

Diff for: ‎src/compiler/diagnosticMessages.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@
699699

700700
"'{0}' tag already specified.": {
701701
"category": "Error",
702-
"code": 1219
702+
"code": 1222
703703
},
704704
"Duplicate identifier '{0}'.": {
705705
"category": "Error",

Diff for: ‎tests/cases/fourslash/getJavaScriptSyntacticDiagnostics1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ verify.getSyntacticDiagnostics(`[
1414
"start": 26,
1515
"length": 4,
1616
"category": "error",
17-
"code": 1219
17+
"code": 1222
1818
}
1919
]`);

0 commit comments

Comments
 (0)
Please sign in to comment.