diff options
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} +} |
