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; |