diff options
| author | Mel <einebeere@gmail.com> | 2022-04-19 22:49:16 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-04-19 22:49:16 +0200 |
| commit | 2b8642aff15bc56751b32dea1057cb08827e7edc (patch) | |
| tree | 75f33e73e0ba98e3fd37e9fb7300db4fff73ec58 /pkg/lang/scanner/token | |
| parent | bbb2962bd4bac0ce1271ec7d7cb65d038ead8ed2 (diff) | |
| download | jinx-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.go | 4 |
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} +} |
