diff options
Diffstat (limited to 'compiler/test_util_test.go')
-rw-r--r-- | compiler/test_util_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/test_util_test.go b/compiler/test_util_test.go index 7e6896d..2ead2c9 100644 --- a/compiler/test_util_test.go +++ b/compiler/test_util_test.go @@ -1,5 +1,11 @@ package compiler +func newRangeSymbolNodeWithPos(from, to byte, pos symbolPosition) *symbolNode { + n := newRangeSymbolNode(from, to) + n.pos = pos + return n +} + func newSymbolNodeWithPos(v byte, pos symbolPosition) *symbolNode { n := newSymbolNode(v) n.pos = pos |