diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-05-28 12:18:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-28 12:18:15 +0100 |
| commit | 74524b6050d340840fcd636cd94b48e4187695aa (patch) | |
| tree | 217644e5ec4c7fa35baca19d68392e6c67069033 /src/parser_pos.cpp | |
| parent | 23852c16be2ed8ae1618c1d951c9904eb40a4198 (diff) | |
| parent | d91054b615e5e185ded106e4903cdd66b2c4f582 (diff) | |
Merge pull request #3644 from odin-lang/foreign-import-improvements
Allow `foreign import` import paths to be evaluated in the semantic phase rather than parsing
Diffstat (limited to 'src/parser_pos.cpp')
| -rw-r--r-- | src/parser_pos.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser_pos.cpp b/src/parser_pos.cpp index b2e12999b..1ffd3a82f 100644 --- a/src/parser_pos.cpp +++ b/src/parser_pos.cpp @@ -278,7 +278,7 @@ Token ast_end_token(Ast *node) { case Ast_ImportDecl: return node->ImportDecl.relpath; case Ast_ForeignImportDecl: if (node->ForeignImportDecl.filepaths.count > 0) { - return node->ForeignImportDecl.filepaths[node->ForeignImportDecl.filepaths.count-1]; + return ast_end_token(node->ForeignImportDecl.filepaths[node->ForeignImportDecl.filepaths.count-1]); } if (node->ForeignImportDecl.library_name.kind != Token_Invalid) { return node->ForeignImportDecl.library_name; |