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
+28 -5
View File
@@ -1,14 +1,37 @@
_Thing :: struct {
import "../dep"
hide Thing :: struct {
value i32
}
_value :: 2
hide Local_Union :: union {
value i32
}
_helper func() i32 {
thing _Thing = _Thing { value = _value }
hide Local_Enum :: enum {
value
}
hide Local_Opaque :: opaque
hide Local_Distinct :: distinct i32
hide Local_Alias :: alias i32
hide value :: 2
hide mutable_value i32 = 2
hide helper func() i32 {
thing Thing = Thing { value = value }
return thing.value
}
hide local_foreign c_func() i32 {
return 1
}
hide Local_C_Record :: c_struct {
value c_int
}
Box :: struct {
_value i32
}
@@ -16,5 +39,5 @@ Box :: struct {
from_b func(_input i32) i32 {
_local Box = Box { _value = _input }
record _C_Record = _C_Record { value = 0 }
return _helper() + _local._value + _foreign() + i32(record.value)
return helper() + _local._value + _foreign() + i32(record.value) + dep._visible()
}