Function callOne [src]
Prototype
pub fn callOne(tree: Ast, buffer: *[1]Node.Index, node: Node.Index) full.Call
Parameters
tree: Ast
buffer: *[1]Node.Index
node: Node.Index
Source
pub fn callOne(tree: Ast, buffer: *[1]Node.Index, node: Node.Index) full.Call {
const fn_expr, const first_param = tree.nodeData(node).node_and_opt_node;
const params = loadOptionalNodesIntoBuffer(1, buffer, .{first_param});
return tree.fullCallComponents(.{
.lparen = tree.nodeMainToken(node),
.fn_expr = fn_expr,
.params = params,
});
}