When the directive %locations
is used, the D parser supports location
tracking, see Tracking Locations. The position and the location
structures are provided.
Location
: Position
begin ¶Location
: Position
end ¶The first, inclusive, position of the range, and the first beyond.
Location
: this(Position
loc)
¶Create a Location
denoting an empty range located at a given point.
Location
: this(Position
begin, Position
end)
¶Create a Location
from the endpoints of the range.
Location
: string
toString() ¶The range represented by the location as a string.