mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 04:38:16 +00:00
[Breaking] Change the layout json.Value to be a union rather than a struct of a json.Pos and the union
This commit is contained in:
@@ -2,6 +2,12 @@ package json
|
||||
|
||||
import "core:unicode/utf8"
|
||||
|
||||
Pos :: struct {
|
||||
offset: int,
|
||||
line: int,
|
||||
column: int,
|
||||
}
|
||||
|
||||
Token :: struct {
|
||||
using pos: Pos,
|
||||
kind: Token_Kind,
|
||||
|
||||
Reference in New Issue
Block a user