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

Unified Diff: lib/src/js/nodes.dart

Issue 1612083002: Initial --modules=es6 support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: addressed comments (legacy, doc) + test enum utils Created 4 years, 11 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
« no previous file with comments | « lib/src/codegen/module_builder.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/nodes.dart
diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
index af0fc120c6717ec0d0d75ec84a3b48f702075534..4b3f1942f8c0fd6599bd8def0ef523596a95f061 100644
--- a/lib/src/js/nodes.dart
+++ b/lib/src/js/nodes.dart
@@ -284,13 +284,13 @@ class Program extends Node {
final String scriptTag;
/// Top-level statements in the program.
- final List<Statement> body;
+ final List<ModuleItem> body;
Program(this.body, {this.scriptTag});
accept(NodeVisitor visitor) => visitor.visitProgram(this);
void visitChildren(NodeVisitor visitor) {
- for (Statement statement in body) statement.accept(visitor);
+ for (ModuleItem statement in body) statement.accept(visitor);
}
Program _clone() => new Program(body);
}
« no previous file with comments | « lib/src/codegen/module_builder.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698