Skip to contents
  • args_new() instantiates a new args node.

  • args_type() checks if the node is a args node.

  • args_seq_get() returns all the child nodes as a list.

  • args_get() returns node at position index.

  • args_set() sets node at position index and deletes the previous node.

  • args_rep() sets node at position index and returns the previous node.

  • args_ins() inserts nodes starting from position index.

Usage

args_new(ast, seq)

args_type(ast, node)

args_len_get(ast, node)

args_seq_get(ast, node)

args_get(ast, node, index)

args_rep(ast, node, index, arg)

args_arg_set(ast, node, index, arg)

args_ins(ast, node, index, seq)

Arguments

ast

AST object

seq

list of child nodes

node

args node

index

one-based index into the args node