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

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

Issue 9479034: Update test.dart for detection output of machine formatted errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updates the multitest logic. Created 8 years, 10 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/DartReturnBlock.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartReturnBlock.java b/compiler/java/com/google/dart/compiler/ast/DartReturnBlock.java
index 0c6dbed811cfe07358ac644a4dfbc4de0f36a743..203dbd797929351eada59f79e35442c75be05cff 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartReturnBlock.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartReturnBlock.java
@@ -11,5 +11,7 @@ import com.google.common.collect.Lists;
public class DartReturnBlock extends DartBlock {
public DartReturnBlock(DartExpression returnVal) {
super(Lists.<DartStatement>newArrayList(new DartReturnStatement(returnVal)));
+ // Set the source information for the synthesized node.
+ getStatements().get(0).setSourceInfo(returnVal.getSourceInfo());
}
}

Powered by Google App Engine
This is Rietveld 408576698