We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44a1524 commit 5e5ec9cCopy full SHA for 5e5ec9c
1 file changed
src/parser/parser.odin
@@ -30,8 +30,7 @@ parse_file :: proc(p: ^Parser, fullpath: string) -> ^ast.File {
30
p.file = ast.new(ast.File, first_token.pos, last_token.pos, p.alloc)
31
p.file.alloc = p.alloc
32
p.file.fullpath = fullpath
33
- src, _ := os.read_entire_file(fullpath, p.alloc)
34
- p.file.src = cast(string)src // TODO: pass file src from lexer
+ p.file.src = l.src
35
p.file.tags = parse_file_tags(p)
36
p.file.pkg = parse_package(p)
37
p.file.decls = parse_top_level_stmt_list(p)
0 commit comments