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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/StringState.java

Issue 273703003: Don't generate errors when failing to follow const constructor redirections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/StringState.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/StringState.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/StringState.java
index 6358f0072bff1bf15c4cef21b80fc25885b37a3e..02c3750410a8b6efa454cf215c74585dc65e02be 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/StringState.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/StringState.java
@@ -111,6 +111,11 @@ public class StringState extends InstanceState {
}
@Override
+ public boolean isUnknown() {
+ return value == null;
+ }
+
+ @Override
public String toString() {
return value == null ? "-unknown-" : "'" + value + "'";
}

Powered by Google App Engine
This is Rietveld 408576698