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

Unified Diff: lib/compiler/implementation/scanner/keyword.dart

Issue 11014010: Made assert a keyword. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Renamed Assert to assertHelper. Switched parser to use parseArguments. Added assert argument checki… Created 8 years, 2 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: lib/compiler/implementation/scanner/keyword.dart
diff --git a/lib/compiler/implementation/scanner/keyword.dart b/lib/compiler/implementation/scanner/keyword.dart
index be4e6520bcfb259ef854a548340edce98bd7269b..f421985ce001c871a15141a633f7ab273d139a07 100644
--- a/lib/compiler/implementation/scanner/keyword.dart
+++ b/lib/compiler/implementation/scanner/keyword.dart
@@ -7,6 +7,7 @@
*/
class Keyword implements SourceString {
static const List<Keyword> values = const <Keyword> [
+ const Keyword("assert"),
const Keyword("break"),
const Keyword("case"),
const Keyword("catch"),
@@ -41,7 +42,6 @@ class Keyword implements SourceString {
const Keyword("abstract", isBuiltIn: true),
const Keyword("as", info: AS_INFO, isBuiltIn: true),
- const Keyword("assert", isBuiltIn: true),
const Keyword("dynamic", isBuiltIn: true),
const Keyword("external", isBuiltIn: true),
const Keyword("factory", isBuiltIn: true),

Powered by Google App Engine
This is Rietveld 408576698