more work

This commit is contained in:
Daniel Gavin
2021-04-19 19:38:08 +02:00
parent c708f649ec
commit f1dc7c0b27
2 changed files with 9 additions and 3 deletions
+4
View File
@@ -124,6 +124,8 @@ print :: proc(p: ^Printer, file: ^ast.File) -> string {
}
set_source_position(p, file.pkg_token.pos);
p.last_source_position.line = 1;
set_line(p, 0);
@@ -187,6 +189,8 @@ print :: proc(p: ^Printer, file: ^ast.File) -> string {
last_line = line_index;
}
strings.write_string(&builder, newline);
return strings.to_string(builder);
}