Skip to contents
  • op_new() instantiates a new op node.

  • op_type() checks if the node is a op node.

  • op_<child>_get() returns the <child> node of op.

  • op_<child>_set() sets the new <child> and deletes the old <child>.

  • op_<child>_rep() sets the new <child> and returns the old <child>.

Usage

op_type(ast, node)

op_gap_get(ast, node)

op_gap_rep(ast, node, gap)

op_gap_set(ast, node, gap)

op_loc_get(ast, node)

Arguments

ast

AST object

node

op node

gap

gap node