This module implements an abstract type that is used by the
Erlang Compiler and its helper modules for holding data such as
column, line number, and text. The data type is a collection of
The Erlang Token Scanner returns tokens with a subset of the following annotations, depending on the options:
The column where the token begins.
The line and column where the token begins, or just the line if the column unknown.
The token's text.
From the above the following annotation is derived:
The line where the token begins.
Furthermore, the following annotations are supported by this module, and used by various modules:
A filename.
A Boolean indicating if the abstract code is compiler generated. The Erlang Compiler does not emit warnings for such code.
A Boolean indicating if the origin of the abstract code is a record. Used by Dialyzer to assign types to tuple elements.
The functions
The functions
A collection of annotations.
The term representing a collection of annotations. It is
either a
To be changed to a non-negative integer in Erlang/OTP 19.0.
Returns the column of the annotations
Returns the end location of the text of the
annotations
Returns the filename of the annotations
Returns annotations with the representation
See also
Returns
Returns
Returns the line of the annotations
Returns the location of the annotations
Creates a new collection of annotations given a location.
Modifies the filename of the annotations
Modifies the generated marker of the annotations
Modifies the line of the annotations
Modifies the location of the annotations
Modifies the record marker of the annotations
Modifies the text of the annotations
Returns the text of the annotations
Returns the term representing the annotations
See also