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 203dbd797929351eada59f79e35442c75be05cff..a47bb20e0b5d1f3ba30e42e7438fb2bf0e86ccc4 100644 |
--- a/compiler/java/com/google/dart/compiler/ast/DartReturnBlock.java |
+++ b/compiler/java/com/google/dart/compiler/ast/DartReturnBlock.java |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
package com.google.dart.compiler.ast; |
@@ -10,8 +10,13 @@ import com.google.common.collect.Lists; |
*/ |
public class DartReturnBlock extends DartBlock { |
public DartReturnBlock(DartExpression returnVal) { |
- super(Lists.<DartStatement>newArrayList(new DartReturnStatement(returnVal))); |
+ super(Lists.<DartStatement> newArrayList(new DartReturnStatement(returnVal))); |
// Set the source information for the synthesized node. |
getStatements().get(0).setSourceInfo(returnVal.getSourceInfo()); |
} |
+ |
+ @Override |
+ public <R> R accept(ASTVisitor<R> visitor) { |
+ return visitor.visitReturnBlock(this); |
+ } |
} |