summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/types.h b/types.h
index 8b17619..9960599 100644
--- a/types.h
+++ b/types.h
@@ -383,12 +383,13 @@ typedef struct {
ErrCtx *ctx;
const char *filename;
char *contents;
+ Token *tokens;
} File;
typedef struct Location {
File *file;
- Token *start;
- Token *end; /* Exclusive */
+ U32 start; /* index of first token */
+ U32 end; /* index of one past last token */
} Location;