Chromium Code Reviews| 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; |
| } |