From 2b8642aff15bc56751b32dea1057cb08827e7edc Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 19 Apr 2022 22:49:16 +0200 Subject: More scanner tests and tight idents fix --- pkg/lang/scanner/token/loc.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/lang/scanner/token') diff --git a/pkg/lang/scanner/token/loc.go b/pkg/lang/scanner/token/loc.go index c4b073a..7936cba 100644 --- a/pkg/lang/scanner/token/loc.go +++ b/pkg/lang/scanner/token/loc.go @@ -4,3 +4,7 @@ type Loc struct { Row int Col int } + +func NewLoc(row, col int) Loc { + return Loc{row, col} +} -- cgit 1.4.1