blob: 100a956a0e5625bea3ae7df6ec443d57c04e6558 [file] [log] [blame]
// Copyright (c) 2011, 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;
/**
* Unofficial Dart native block for built in native invocations.
*/
public class DartNativeBlock extends DartBlock {
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
public <R> R accept(ASTVisitor<R> visitor) {
return visitor.visitNativeBlock(this);
}
}