replace leading _ for private symbols with keyword hide

This commit is contained in:
2026-07-14 20:19:01 +02:00
parent 5157cf3bcc
commit 267947e79d
31 changed files with 125220 additions and 122709 deletions
+2 -2
View File
@@ -966,7 +966,7 @@ configure_io_main :: proc(checker: ^Checker) {
return
}
provider_name := symbol.intern(checker.symbols, "_system")
provider_name := symbol.intern(checker.symbols, "system")
provider := ast.INVALID_FUNCTION
for function, function_id in checker.ast_module.functions {
if function.pkg != io_package || function.name != provider_name {
@@ -986,7 +986,7 @@ configure_io_main :: proc(checker: ^Checker) {
checker.template_diagnostics[main_template] = source.add(
checker.diagnostics,
main.span,
"@std/io does not provide the required '_system func() Io' startup implementation",
"@std/io does not provide the required 'hide system func() Io' startup implementation",
)
return
}