kolasu
1.6.0-RC1-observers-SNAPSHOT
jvm
antlr
/
com.strumenta.kolasu.antlr.parsing
/
toRange
to
Range
fun
ParserRuleContext
.
toRange
(
considerRange
:
Boolean
=
true
,
source
:
Source
?
=
null
)
:
Range
?
Returns the range of the receiver parser rule context.
Parameters
consider
Range
if it's false, this method returns null.
fun
TerminalNode
.
toRange
(
considerRange
:
Boolean
=
true
,
source
:
Source
?
=
null
)
:
Range
?
fun
Token
.
toRange
(
considerRange
:
Boolean
=
true
,
source
:
Source
?
=
null
)
:
Range
?
fun
ParseTree
.
toRange
(
considerRange
:
Boolean
=
true
,
source
:
Source
?
=
null
)
:
Range
?