Skip to contents
  • loc_new() instantiates a new loc node.

  • loc_type() checks if the node is a loc node.

  • loc_<child>_get() returns the <child> node of loc.

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

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

Usage

loc_type(ast, node)

loc_lrow_get(ast, node)

loc_lcol_get(ast, node)

loc_lchr_get(ast, node)

loc_lbyte_get(ast, node)

loc_rrow_get(ast, node)

loc_rcol_get(ast, node)

loc_rchr_get(ast, node)

loc_rbyte_get(ast, node)

Arguments

ast

AST object

node

loc node