Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: utils/pub/validator/name.dart

Issue 12301032: Use the correct set of reserved identifiers in pub validations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | utils/tests/pub/validator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator/name.dart
diff --git a/utils/pub/validator/name.dart b/utils/pub/validator/name.dart
index 2ad4bc9faa00ac7eaf4b18009716758f78e2a369..249a0c9ee76e2907d4c700d9e2424c0e296d9066 100644
--- a/utils/pub/validator/name.dart
+++ b/utils/pub/validator/name.dart
@@ -16,9 +16,10 @@ import '../validator.dart';
/// Dart reserved words, from the Dart spec.
final _RESERVED_WORDS = [
- "abstract", "as", "dynamic", "export", "external", "factory", "get",
- "implements", "import", "library", "operator", "part", "set", "static",
- "typedef"
+ "assert", "break", "case", "catch", "class", "const", "continue", "default",
+ "do", "else", "extends", "false", "final", "finally", "for", "if", "in", "is",
+ "new", "null", "return", "super", "switch", "this", "throw", "true", "try",
+ "var", "void", "while", "with"
];
/// A validator that validates the name of the package and its libraries.
« no previous file with comments | « no previous file | utils/tests/pub/validator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698