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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/DeclarationResolver.java

Issue 14205011: Issue 9845. Compare runtime types using ==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/resolver/DeclarationResolver.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/DeclarationResolver.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/DeclarationResolver.java
index ba24e50015b57be9f882c3df2cb302450e99e78d..a294753fe59b290855d89060884b161f54e244ac 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/DeclarationResolver.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/DeclarationResolver.java
@@ -70,9 +70,6 @@ import com.google.dart.engine.scanner.TokenType;
import com.google.dart.engine.source.Source;
import com.google.dart.engine.utilities.io.PrintStringWriter;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-
/**
* Instances of the class {@code DeclarationResolver} are used to resolve declarations in an AST
* structure to already built elements.
@@ -210,9 +207,7 @@ public class DeclarationResolver extends RecursiveASTVisitor<Void> {
writer.println("---------");
parent = parent.getParent();
}
- StringWriter sw = new StringWriter();
- new AnalysisException().printStackTrace(new PrintWriter(sw));
- writer.println(sw.toString());
+ new AnalysisException().printStackTrace(writer);
AnalysisEngine.getInstance().getLogger().logError(writer.toString());
Brian Wilkerson 2013/04/17 18:59:42 Seems like it would be better still to just write
}
Expression defaultValue = node.getDefaultValue();

Powered by Google App Engine
This is Rietveld 408576698