| Index: compiler/java/com/google/dart/compiler/ast/DartUnit.java
|
| diff --git a/compiler/java/com/google/dart/compiler/ast/DartUnit.java b/compiler/java/com/google/dart/compiler/ast/DartUnit.java
|
| index 292b028a156b8d8c73e6db2beb5cc65f2a79b56d..400a65c1f3f3a739ef6680761f0601f732874729 100644
|
| --- a/compiler/java/com/google/dart/compiler/ast/DartUnit.java
|
| +++ b/compiler/java/com/google/dart/compiler/ast/DartUnit.java
|
| @@ -23,13 +23,14 @@ public class DartUnit extends DartNode {
|
| private List<DartDirective> directives;
|
| private final List<DartNode> topLevelNodes = Lists.newArrayList();
|
| private final DartSource source;
|
| + private final boolean isDiet;
|
| /** A list of comments. May be null. */
|
| private List<DartComment> comments;
|
| - private boolean isDiet;
|
| private String dietParse;
|
|
|
| - public DartUnit(DartSource source) {
|
| + public DartUnit(DartSource source, boolean isDiet) {
|
| this.source = source;
|
| + this.isDiet = isDiet;
|
| }
|
|
|
| public void addTopLevelNode(DartNode node) {
|
| @@ -103,13 +104,6 @@ public class DartUnit extends DartNode {
|
| }
|
|
|
| /**
|
| - * Sets this unit to be a diet unit, meaning it contains no method bodies.
|
| - */
|
| - public void setDiet(boolean isDiet) {
|
| - this.isDiet = isDiet;
|
| - }
|
| -
|
| - /**
|
| * Whether this is an diet unit, meaning it contains no method bodies.
|
| */
|
| public boolean isDiet() {
|
|
|