aboutsummaryrefslogtreecommitdiff
path: root/driver/parser/token_stream.go
diff options
context:
space:
mode:
Diffstat (limited to 'driver/parser/token_stream.go')
-rw-r--r--driver/parser/token_stream.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/parser/token_stream.go b/driver/parser/token_stream.go
index 0bc9e32..929b733 100644
--- a/driver/parser/token_stream.go
+++ b/driver/parser/token_stream.go
@@ -28,6 +28,10 @@ func (t *vToken) Invalid() bool {
return t.tok.Invalid
}
+func (t *vToken) BytePosition() (int, int) {
+ return t.tok.BytePos, t.tok.ByteLen
+}
+
func (t *vToken) Position() (int, int) {
return t.tok.Row, t.tok.Col
}