java.lang.Object
swim.codec.Tag
Description of a source location. Tags are used to annotate input sources,
particularly for
diagnostic purposes. A Mark tag
annotates a source position. A Span tag annotate a source range.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionabstract Markend()Returns the last source position covered by thisTag.abstract TagReturns the position of thisTagrelative to the givenmark.abstract Markstart()Returns the first source position covered by thisTag.abstract TagReturns aTagthat includes all source locations covered by both this tag, and someothertag.
-
Method Details
-
start
Returns the first source position covered by thisTag. -
end
Returns the last source position covered by thisTag. -
union
Returns aTagthat includes all source locations covered by both this tag, and someothertag. -
shift
Returns the position of thisTagrelative to the givenmark.
-