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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartUnit.java

Issue 9149008: Fixes for parsing warnigs, issue 1060. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
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() {

Powered by Google App Engine
This is Rietveld 408576698