Skip to content

Commit c30599b

Browse files
committed
chore: use getText
1 parent 05a3919 commit c30599b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lang/traversal/Location.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ func RuleLocation(ctx antlr.ParserRuleContext, text string) TextLocation {
4949
Col: ctx.GetStop().GetColumn(),
5050
},
5151
StopIdx: ctx.GetStop().GetStop(),
52-
Text: text[ctx.GetStart().GetStart() : ctx.GetStop().GetStop()+1],
52+
Text: ctx.GetText(),
5353
}
5454
}

0 commit comments

Comments
 (0)