Skip to contents
  • unop_new() instantiates a new unop node.

  • unop_type() checks if the node is a unop node.

  • unop_<child>_get() returns the <child> node of unop.

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

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

Usage

unop_new(ast, op, expr)

unop_type(ast, node)

unop_op_get(ast, node)

unop_op_rep(ast, node, op)

unop_op_set(ast, node, op)

unop_expr_get(ast, node)

unop_expr_rep(ast, node, expr)

unop_expr_set(ast, node, expr)

Arguments

ast

AST object

op

op node

expr

expr node

node

unop node