about summary refs log tree commit diff
path: root/pkg/lang/scanner/token
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-04-19 22:49:16 +0200
committerMel <einebeere@gmail.com>2022-04-19 22:49:16 +0200
commit2b8642aff15bc56751b32dea1057cb08827e7edc (patch)
tree75f33e73e0ba98e3fd37e9fb7300db4fff73ec58 /pkg/lang/scanner/token
parentbbb2962bd4bac0ce1271ec7d7cb65d038ead8ed2 (diff)
downloadjinx-2b8642aff15bc56751b32dea1057cb08827e7edc.tar.zst
jinx-2b8642aff15bc56751b32dea1057cb08827e7edc.zip
More scanner tests and tight idents fix
Diffstat (limited to 'pkg/lang/scanner/token')
-rw-r--r--pkg/lang/scanner/token/loc.go4
1 files changed, 4 insertions, 0 deletions
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}
+}