Set the start and finish positions of t
to the positions of a
if it has them.
Set the start and finish positions of t
to the positions of a
if it has them. Return t
.
Set the start and finish positions of t
to the start positions of a
and the finish position of b
if they have them.
Set the start and finish positions of t
to the start positions of a
and the finish position of b
if they have them. Return t
.
Get the optional finish position of t
.
Get the optional finish position of t
. If it doesn't have one,
return None
.
Get the optional start position of t
.
Get the optional start position of t
. If it doesn't have
one, return None
.
Reset the position maps to be empty.
Set all positions of t
to p
.
Set the finish
position of t
to p
if it has not already been set.
Set the start position of t
to p
if it has not already been set.
Get the source text associated with the substring of a source between given starting and finishing positions.
Get the source text associated with the substring of a source
between given starting and finishing positions. The two positions
are assumed to reference the same source. If either of the
positions doesn't refer to a valid offset in the source then
None
is returned.
If t
has valid start and finish positions, return the source text
associated with t
.
If t
has valid start and finish positions, return the source text
associated with t
. Otherwise, return None
. It is assumed that
the start and finish positions (if present) both refer to the same
source.
Record of source positions that correspond to program elements.