1 #ifndef __TAN_SRC_AST_SOURCE_MANAGER_H__
2 #define __TAN_SRC_AST_SOURCE_MANAGER_H__
14 Token *get_token(uint32_t loc)
const;
15 uint32_t get_line(uint32_t loc)
const;
16 uint32_t get_col(uint32_t loc)
const;
17 str get_token_str(uint32_t loc)
const;
18 Token *get_last_token()
const;
19 bool is_eof(uint32_t loc)
const;
20 str get_filename()
const;
21 str get_src_location_str(uint32_t loc)
const;
24 str get_source_code(uint32_t start, uint32_t end)
const;
28 vector<Token *> _tokens;
Different from SourceFile, TokenizedSourceFile manages the tokenized text of a source file.