Don't quote the word 'generators' in error messages

This commit is contained in:
Jason Freeman
2014-12-11 17:22:22 -08:00
parent d385f2ebf4
commit 06d7ef14cf
32 changed files with 61 additions and 61 deletions

View File

@@ -430,7 +430,7 @@ module ts {
Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: { code: 7024, category: DiagnosticCategory.Error, key: "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions." },
You_cannot_rename_this_element: { code: 8000, category: DiagnosticCategory.Error, key: "You cannot rename this element." },
yield_expressions_are_not_currently_supported: { code: 9000, category: DiagnosticCategory.Error, key: "'yield' expressions are not currently supported." },
generators_are_not_currently_supported: { code: 9001, category: DiagnosticCategory.Error, key: "'generators' are not currently supported." },
Generators_are_not_currently_supported: { code: 9001, category: DiagnosticCategory.Error, key: "Generators are not currently supported." },
Computed_property_names_are_not_currently_supported: { code: 9002, category: DiagnosticCategory.Error, key: "Computed property names are not currently supported." },
};
}

View File

@@ -1720,7 +1720,7 @@
"category": "Error",
"code": 9000
},
"'generators' are not currently supported.": {
"Generators are not currently supported.": {
"category": "Error",
"code": 9001
},

View File

@@ -4410,7 +4410,7 @@ module ts {
function checkForGenerator(node: FunctionLikeDeclaration) {
if (node.asteriskToken) {
return grammarErrorOnNode(node.asteriskToken, Diagnostics.generators_are_not_currently_supported);
return grammarErrorOnNode(node.asteriskToken, Diagnostics.Generators_are_not_currently_supported);
}
}