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

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

Issue 1263583005: implement exports, fixes #141 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase Created 5 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/src/js/nodes.dart
diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
index 62fe2e6794fe40bf2bff0b563b0e949065ff394f..f5d0ed5d7a4145315793c681835f6dc2849357bd 100644
--- a/lib/src/js/nodes.dart
+++ b/lib/src/js/nodes.dart
@@ -245,8 +245,13 @@ abstract class Node {
}
class Program extends Node {
+ /// Script tag hash-bang, e.g. `#!/usr/bin/env node`
+ final String scriptTag;
+
+ /// Top-level statements in the program.
final List<Statement> body;
- Program(this.body);
+
+ Program(this.body, {this.scriptTag});
accept(NodeVisitor visitor) => visitor.visitProgram(this);
void visitChildren(NodeVisitor visitor) {

Powered by Google App Engine
This is Rietveld 408576698