diagnostics upgrade

This commit is contained in:
2026-07-15 22:55:31 +02:00
parent c4fa8e930f
commit 7de0b7f268
11 changed files with 857 additions and 75 deletions
+7
View File
@@ -428,6 +428,13 @@ parse_type_atom :: proc(parser: ^Parser) -> ast.Type_Syntax {
count_expr=u32(call),
})
}
append(&parser.module.type_uses, ast.Type_Use{
type=named,
span=first.span,
pkg=parser.pkg,
file=parser.file,
diagnostic=source.INVALID_DIAGNOSTIC,
})
return named
}
source.add(parser.diagnostics, tok.span, "expected a type")