Merge pull request #3308 from Microsoft/fixJSDocErrorCode

Fix JSDoc error code for to avoid duplicate error code
This commit is contained in:
Jason Freeman 2015-05-29 18:15:50 -07:00
commit f531ff8439
3 changed files with 3 additions and 3 deletions

View file

@ -177,7 +177,7 @@ module ts {
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." },
Generators_are_not_allowed_in_an_ambient_context: { code: 1220, category: DiagnosticCategory.Error, key: "Generators are not allowed in an ambient context." },
An_overload_signature_cannot_be_declared_as_a_generator: { code: 1221, category: DiagnosticCategory.Error, key: "An overload signature cannot be declared as a generator." },
_0_tag_already_specified: { code: 1219, category: DiagnosticCategory.Error, key: "'{0}' tag already specified." },
_0_tag_already_specified: { code: 1222, category: DiagnosticCategory.Error, key: "'{0}' tag already specified." },
Duplicate_identifier_0: { code: 2300, category: DiagnosticCategory.Error, key: "Duplicate identifier '{0}'." },
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." },
Static_members_cannot_reference_class_type_parameters: { code: 2302, category: DiagnosticCategory.Error, key: "Static members cannot reference class type parameters." },

View file

@ -699,7 +699,7 @@
"'{0}' tag already specified.": {
"category": "Error",
"code": 1219
"code": 1222
},
"Duplicate identifier '{0}'.": {
"category": "Error",

View file

@ -14,6 +14,6 @@ verify.getSyntacticDiagnostics(`[
"start": 26,
"length": 4,
"category": "error",
"code": 1219
"code": 1222
}
]`);