feat: resolve names without shadowing

This commit is contained in:
2026-10-05 18:15:55 +02:00
parent 50a10bb404
commit 9b273f2471
6 changed files with 521 additions and 4 deletions
+4
View File
@@ -345,6 +345,10 @@ add_invalid_decl proc(builder @mut Builder, span Span, diagnostic DiagnosticId)
}, span)
}
node_count proc(tree @Tree) usize {
return tree.storage.nodes.items.len
}
package_decl_count proc(tree @Tree) usize {
root :: get_node(&tree.storage, tree.root)
debug.assert(root.kind == .package)