From b09a14147d397904722ee7c25e4defc56135b96f Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 9 May 2022 00:01:02 +0200 Subject: Extract source walk part of scanner --- pkg/lang/ast/expr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/lang/ast/expr.go') diff --git a/pkg/lang/ast/expr.go b/pkg/lang/ast/expr.go index ab6578a..f98f9b3 100644 --- a/pkg/lang/ast/expr.go +++ b/pkg/lang/ast/expr.go @@ -1,6 +1,6 @@ package ast -import "jinx/pkg/lang/scanner/token" +import "jinx/pkg/libs/source" type ExprKind int @@ -25,7 +25,7 @@ const ( type Expr ExprT[any] type ExprT[T any] struct { - At token.Loc + At source.Loc Kind ExprKind Value T } -- cgit 1.4.1