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

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

Issue 10516006: Issue 3268. Support for replacing 'assert' statement with 'assert' function (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments Created 8 years, 6 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 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);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698