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

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

Issue 11293018: Update semantic highlighting only if there are no parse errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15c2537b2bd0093a75c00a5211418c35c4cc6624..063455ee721c8a9dfd0e50775633492fa3e510d9 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartUnit.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartUnit.java
@@ -24,6 +24,8 @@ public class DartUnit extends DartNode {
private final NodeList<DartComment> comments = NodeList.create(this);
private final DartSource source;
private final boolean isDiet;
+
+ private boolean hasParseErrors;
public DartUnit(DartSource source, boolean isDiet) {
this.source = source;
@@ -69,6 +71,14 @@ public class DartUnit extends DartNode {
return isDiet;
}
+ public void setHasParseErrors(boolean hasParseErrors) {
+ this.hasParseErrors = hasParseErrors;
+ }
+
+ public boolean hasParseErrors() {
+ return hasParseErrors;
+ }
+
/**
* Answer the receiver's directives, not <code>null</code>.
*/
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698