aboutsummaryrefslogtreecommitdiff
path: root/compiler/test_util_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/test_util_test.go')
-rw-r--r--compiler/test_util_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/test_util_test.go b/compiler/test_util_test.go
index 2ead2c9..72e150b 100644
--- a/compiler/test_util_test.go
+++ b/compiler/test_util_test.go
@@ -1,5 +1,7 @@
package compiler
+import "github.com/nihei9/maleeni/spec"
+
func newRangeSymbolNodeWithPos(from, to byte, pos symbolPosition) *symbolNode {
n := newRangeSymbolNode(from, to)
n.pos = pos
@@ -13,7 +15,7 @@ func newSymbolNodeWithPos(v byte, pos symbolPosition) *symbolNode {
}
func newEndMarkerNodeWithPos(id int, pos symbolPosition) *endMarkerNode {
- n := newEndMarkerNode(id)
+ n := newEndMarkerNode(spec.LexModeKindID(id))
n.pos = pos
return n
}