about summary refs log tree commit diff
path: root/pkg/lang/scanner/token/loc.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/scanner/token/loc.go')
-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}
+}