add ArrayList alias to std

This commit is contained in:
2026-07-13 13:46:45 +02:00
parent 288df082e2
commit 6455df52b4
14 changed files with 600 additions and 13 deletions
+25
View File
@@ -251,6 +251,28 @@ Import :: struct {
diagnostic: source.Diagnostic_Id,
}
Declaration_Alias_Kind :: enum u8 {
Invalid,
Function,
Global,
Type,
}
Declaration_Alias :: struct {
span: source.Span,
name: symbol.Id,
qualifier: symbol.Id,
member: symbol.Id,
pkg: Package_Id,
file: File_Id,
target_pkg: Package_Id,
target: u32,
kind: Declaration_Alias_Kind,
file_hidden: bool,
valid: bool,
diagnostic: source.Diagnostic_Id,
}
File :: struct {
source: source.Source_Id,
pkg: Package_Id,
@@ -290,6 +312,7 @@ Module :: struct {
functions: [dynamic]Function,
globals: [dynamic]Global,
imports: [dynamic]Import,
aliases: [dynamic]Declaration_Alias,
files: [dynamic]File,
packages: [dynamic]Package,
unsupported: [dynamic]Unsupported,
@@ -309,6 +332,7 @@ init_module :: proc(allocator := context.allocator) -> Module {
module.functions.allocator = allocator
module.globals.allocator = allocator
module.imports.allocator = allocator
module.aliases.allocator = allocator
module.files.allocator = allocator
module.packages.allocator = allocator
module.unsupported.allocator = allocator
@@ -360,6 +384,7 @@ destroy_module :: proc(module: ^Module) {
delete(module.functions)
delete(module.globals)
delete(module.imports)
delete(module.aliases)
delete(module.files)
delete(module.packages)
delete(module.unsupported)