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

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 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
« no previous file with comments | « frog/leg/ssa/builder.dart ('k') | frog/leg/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/tree/nodes.dart
===================================================================
--- frog/leg/tree/nodes.dart (revision 2023)
+++ frog/leg/tree/nodes.dart (working copy)
@@ -233,12 +233,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;
@@ -323,7 +325,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;
@@ -463,6 +465,7 @@
SourceString get source() => token.value;
Identifier(Token this.token);
+ Identifier.synthetic(String name) : token = new StringToken(null, name, null);
Identifier asIdentifier() => this;
« no previous file with comments | « frog/leg/ssa/builder.dart ('k') | frog/leg/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698