aboutsummaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index 3e3cc92..1ed98f3 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -70,6 +70,7 @@ CHECK_RESULT int amal_compiler_internal_load_file(amal_compiler *self, const cha
/*
Returns a reference to the parsers tokenizer that contains the code reference, or NULL.
Note: The lifetime of the tokenizer returned is the same as the lifetime of the parser that owns it.
+ Should only be called once code has been parsed (in AST stage or later), in which case it's thread-safe.
*/
Tokenizer* amal_compiler_find_tokenizer_by_code_reference(amal_compiler *self, const char *code_ref);