use of com.google.devtools.j2objc.ast.LambdaExpression in project j2objc by google.
the class TreeConverter method convertLambdaExpression.
private static TreeNode convertLambdaExpression(org.eclipse.jdt.core.dom.LambdaExpression node) {
LambdaExpression newNode = new LambdaExpression();
convertFunctionalExpression(node, newNode);
for (Object x : node.parameters()) {
newNode.addParameter((VariableDeclaration) TreeConverter.convert(x));
}
return newNode.setBody(TreeConverter.convert(node.getBody()));
}
use of com.google.devtools.j2objc.ast.LambdaExpression in project j2objc by google.
the class TreeConverter method convertLambda.
private TreeNode convertLambda(JCTree.JCLambda node) {
LambdaExpression newNode = new LambdaExpression();
convertFunctionalExpression(node, newNode);
for (JCVariableDecl param : node.params) {
newNode.addParameter((VariableDeclaration) convert(param));
}
return newNode.setBody(convert(node.getBody()));
}
Aggregations