< prev index next >
src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/IRTranslator.java
Print this page
*** 222,232 ****
return false;
}
@Override
public boolean enterFunctionNode(final FunctionNode functionNode) {
! assert !functionNode.isDeclared() : "should not reach here for function declaration";
final List<? extends ExpressionTree> paramTrees
= translateExprs(functionNode.getParameters());
final BlockTree blockTree = (BlockTree) translateBlock(functionNode.getBody(), true);
curExpr = new FunctionExpressionTreeImpl(functionNode, paramTrees, blockTree);
--- 222,232 ----
return false;
}
@Override
public boolean enterFunctionNode(final FunctionNode functionNode) {
! assert !functionNode.isDeclared() || functionNode.isAnonymous() : "should not reach here for function declaration";
final List<? extends ExpressionTree> paramTrees
= translateExprs(functionNode.getParameters());
final BlockTree blockTree = (BlockTree) translateBlock(functionNode.getBody(), true);
curExpr = new FunctionExpressionTreeImpl(functionNode, paramTrees, blockTree);
< prev index next >