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

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

Issue 10962014: Fixes for raw string and block clean ups (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/DartNativeBlock.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartNativeBlock.java b/compiler/java/com/google/dart/compiler/ast/DartNativeBlock.java
index c992cd48822c2d50036f4835139e17d7e18328ad..100a956a0e5625bea3ae7df6ec443d57c04e6558 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartNativeBlock.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartNativeBlock.java
@@ -10,12 +10,20 @@ package com.google.dart.compiler.ast;
*/
public class DartNativeBlock extends DartBlock {
- public DartNativeBlock() {
+ private final DartExpression body;
+
+ public DartNativeBlock(DartExpression body) {
super(null);
+ this.body = body;
+ }
+
+ public DartExpression getBody() {
+ return body;
}
@Override
public void visitChildren(ASTVisitor<?> visitor) {
+ safelyVisitChild(body, visitor);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698