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

Unified Diff: compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java

Issue 8913016: Issue 839: Bad code leading to top level methods being something other than identifier (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Nits Created 9 years 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/viz/BaseASTWriter.java
diff --git a/compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java b/compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java
index fffddd6f93b4b705cd93e3852268c6a251e35cf6..899e91af681892ddf30ca2074074b79670e8b74b 100644
--- a/compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java
+++ b/compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java
@@ -342,7 +342,9 @@ public abstract class BaseASTWriter {
@Override
public Object visitFunctionExpression(DartFunctionExpression node) {
- write("DartFunctionExpression", node);
+ DartIdentifier name = node.getName();
+ write("DartFunctionExpression", node, name != null ? name.toString() : "");
+ visitChildren(node);
return null;
}

Powered by Google App Engine
This is Rietveld 408576698