Skip to main content

Position AST Common Object

The Position object represent a position in the AST.


The Position object is used by the AstElement. It is used by the start end end attribute for all AST objects.


  • line (type number): the line of the position
  • col (type number): the column of the position