Add error messages when file not found + error position
This commit is contained in:
4
ast.cpp
4
ast.cpp
@@ -510,8 +510,8 @@ ast_module_namespace(Token *pos, Ast_Module *module, Intern_String name){
|
||||
}
|
||||
|
||||
function Ast_Module *
|
||||
ast_module(Intern_String filename){
|
||||
AST_NEW(Module, MODULE, 0, 0);
|
||||
ast_module(Token *pos, Intern_String filename){
|
||||
AST_NEW(Module, MODULE, pos, 0);
|
||||
result->parent_scope = 0;
|
||||
result->kind = AST_MODULE;
|
||||
result->name = filename;
|
||||
|
||||
Reference in New Issue
Block a user