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

Unified Diff: third_party/pkg/angular/lib/tools/reserved_dart_keywords.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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
Index: third_party/pkg/angular/lib/tools/reserved_dart_keywords.dart
diff --git a/third_party/pkg/angular/lib/tools/reserved_dart_keywords.dart b/third_party/pkg/angular/lib/tools/reserved_dart_keywords.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5d009f5fcae5869d7ead857fbc2bf8f3385ddbdd
--- /dev/null
+++ b/third_party/pkg/angular/lib/tools/reserved_dart_keywords.dart
@@ -0,0 +1,10 @@
+library reserved_dart_keywords;
+
+// From https://www.dartlang.org/docs/spec/latest/dart-language-specification.html#h.huusvrzea3q
+List<String> RESERVED_DART_KEYWORDS = [
+ "assert", "break", "case", "catch", "class", "const", "continue",
+ "default", "do", "else", "enum", "extends", "false", "final",
+ "finally", "for", "if", "in", "is", "new", "null", "rethrow",
+ "return", "super", "switch", "this", "throw", "true", "try",
+ "var", "void", "while", "with"];
+isReserved(String key) => RESERVED_DART_KEYWORDS.contains(key);

Powered by Google App Engine
This is Rietveld 408576698