Skip to content
Snippets Groups Projects
Commit 54388df4 authored by Mick Jordan's avatar Mick Jordan
Browse files

add @TruffleBoundary to REngine.transform

parent 7a30de26
Branches
No related tags found
No related merge requests found
......@@ -453,6 +453,7 @@ final class REngine implements Engine, Engine.Timings {
* @param astNode parser AST instance
* @return the root node of the Truffle AST
*/
@TruffleBoundary
private static RSyntaxNode transform(ASTNode astNode) {
return new RTruffleVisitor().transform(astNode);
}
......@@ -464,8 +465,8 @@ final class REngine implements Engine, Engine.Timings {
}
/**
* Creates an anonymous function, with no arguments to evaluate {@code body}. If {@body} is a
* not a syntax node, uses a simple {@link BodyNode} with no source information. Otherwise
* Creates an anonymous function, with no arguments to evaluate {@code body}. If {@body}
* is a not a syntax node, uses a simple {@link BodyNode} with no source information. Otherwise
* creates a {@link FunctionStatementsNode} using {@code body}. and ensures that the
* {@link FunctionBodyNode} has a {@link SourceSection}, for instrumentation, although the
* anonymous {@link FunctionDefinitionNode} itself does not need one.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment