replace leading _ for private symbols with keyword hide
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user