summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/types.h b/types.h
index 7ea2c25..605b6d2 100644
--- a/types.h
+++ b/types.h
@@ -322,8 +322,15 @@ typedef struct Token {
typedef struct Location {
+ /* if start is NULL, simple_location will be used. */
Token *start;
- Token *end; /* Exclusive */
+ union {
+ Token *end; /* Exclusive */
+ struct {
+ ErrCtx *ctx;
+ U32 line;
+ } *simple_location;
+ };
} Location;