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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/ASTCloner.java

Issue 29083004: Restore CompilationUnit.lineInfo in Java and Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/ASTCloner.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/ASTCloner.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/ASTCloner.java
index 016e20bb3a21b223a9a96da59a55557ff7dd4d3d..d3f3a45a5f6a19940635a1e6a6c2d4a83bc6aa54 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/ASTCloner.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/ast/ASTCloner.java
@@ -184,6 +184,7 @@ public class ASTCloner implements ASTVisitor<ASTNode> {
clone(node.getDirectives()),
clone(node.getDeclarations()),
node.getEndToken());
+ clone.setLineInfo(node.getLineInfo());
return clone;
}

Powered by Google App Engine
This is Rietveld 408576698