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

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

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase wrt CL 10832351. Created 8 years, 4 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/tree/nodes.dart
diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
index f3d37ec5e0467ee81f3b57eaafd24c0b0318e886..8b3d3f5233bf1bd00fd1d989f17b41a19a3d7572 100644
--- a/lib/compiler/implementation/tree/nodes.dart
+++ b/lib/compiler/implementation/tree/nodes.dart
@@ -1136,6 +1136,7 @@ class Modifiers extends Node {
bool isConst() => (flags & FLAG_CONST) != 0;
bool isFactory() => (flags & FLAG_FACTORY) != 0;
bool isExternal() => (flags & FLAG_EXTERNAL) != 0;
+ bool isFinalOrConst() => (flags & (FLAG_FINAL | FLAG_CONST)) != 0;
String toString() {
LinkBuilder<String> builder = new LinkBuilder<String>();
@@ -1678,7 +1679,7 @@ class CatchBlock extends Node {
final Token onKeyword;
final Token catchKeyword;
- CatchBlock(this.type, this.formals, this.block,
+ CatchBlock(this.type, this.formals, this.block,
this.onKeyword, this.catchKeyword);
CatchBlock asCatchBlock() => this;

Powered by Google App Engine
This is Rietveld 408576698