Child pages
  • Located

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Located is an abstract class for all AST objects. (The ParseTree class is inherited from it. It contains a description of the AST node location in the text and makes it possible to read the text that corresponds to the AST node and to compare the AST nodes locations.

Code Block
public class Located
  public static @:(located : Located) : Location;

  public this(location : Location);

  public Location : Location { get; }

  public GetText() : string;
  public GetText(token : NSpan) : string;
  public FirstChar(token : NSpan) : char;
  public IntersectsWith(start : int, end : int) : bool;
  public IntersectsWith(other : NSpan)         : bool;
  public Intersection(start : int, end : int)   : ValueOption[Location];

See also