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

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

Issue 8304012: Addresses issue 10. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/ast/DartNode.java
===================================================================
--- compiler/java/com/google/dart/compiler/ast/DartNode.java (revision 449)
+++ compiler/java/com/google/dart/compiler/ast/DartNode.java (working copy)
@@ -119,7 +119,8 @@
protected <T extends DartNode> T becomeParentOf(T child) {
if (child != null) {
- child.setParent(this);
+ DartNode node = child;
+ node.setParent(this);
jat 2011/10/15 00:01:05 How does this actually change anything?
John Lenz 2011/10/15 00:43:14 See: http://www.oracle.com/technetwork/java/javase
jat 2011/10/15 01:33:27 Please add a comment explaining why this is here -
John Lenz 2011/10/17 18:34:41 See: http://www.oracle.com/technetwork/java/javase
John Lenz 2011/10/17 18:34:41 Done.
}
return child;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698