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: frog/leg/tree/nodes.dart

Issue 8769012: Start resolving classes and default constructors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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: frog/leg/tree/nodes.dart
===================================================================
--- frog/leg/tree/nodes.dart (revision 1986)
+++ frog/leg/tree/nodes.dart (working copy)
@@ -231,12 +231,14 @@
final Token beginToken;
final Token endToken;
final SourceString delimiter;
+ bool isEmpty() => nodes.isEmpty();
// TODO(floitsch): second argument should be this.nodes.
NodeList([this.beginToken, nodes, this.endToken, this.delimiter])
: _nodes = nodes;
NodeList.singleton(Node node) : this(null, new Link<Node>(node));
+ NodeList.empty() : this(null, const EmptyLink<Node>());
NodeList asNodeList() => this;
@@ -321,7 +323,7 @@
final Token forToken;
- For(this.initializer, this.conditionStatement, this.update, body,
+ For(this.initializer, this.conditionStatement, this.update, body,
this.forToken) : super(body);
For asFor() => this;

Powered by Google App Engine
This is Rietveld 408576698