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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart

Issue 11293244: Implement --analyze-all option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Correctly parse metadata Created 8 years, 1 month 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: dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index 99d3a88876f3758fd7586a1f1e29827a5afd3189..d8e54734afa1bc4e9fce29f84d79340878286a67 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -400,7 +400,10 @@ class NewExpression extends Expression {
if (send != null) send.accept(visitor);
}
- bool isConst() => identical(newToken.stringValue, 'const');
+ bool isConst() {
+ return identical(newToken.stringValue, 'const')
+ || identical(newToken.stringValue, '@');
+ }
Token getBeginToken() => newToken;

Powered by Google App Engine
This is Rietveld 408576698