diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-06-13 19:58:44 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-06-13 19:58:44 +0200 |
| commit | 582a1b1c1b42065d3bd22bd0f23bfd3ec38cdae4 (patch) | |
| tree | edc281df609d163d11d933d2f824035b144ef088 /src/server/collector.odin | |
| parent | 3c05ab67cd6b811a0993e49f2ca1ed75e0aca8e3 (diff) | |
add prepare rename
Diffstat (limited to 'src/server/collector.odin')
| -rw-r--r-- | src/server/collector.odin | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin index eecf2ed..bdc69a6 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -39,6 +39,7 @@ SymbolPackage :: struct { symbols: map[string]Symbol, objc_structs: map[string]ObjcStruct, //mapping from struct name to function methods: map[Method][dynamic]Symbol, + imports: [dynamic]string, //Used for references to figure whether the package is even able to reference the symbol } get_index_unique_string :: proc { @@ -100,6 +101,7 @@ delete_symbol_collection :: proc(collection: SymbolCollection) { delete(v.methods) delete(v.objc_structs) delete(v.symbols) + delete(v.imports) } delete(collection.packages) @@ -566,6 +568,10 @@ collect_objc :: proc( } } +collect_imports :: proc(collection: ^SymbolCollection, file: ast.File) { + +} + collect_symbols :: proc( collection: ^SymbolCollection, file: ast.File, @@ -577,6 +583,8 @@ collect_symbols :: proc( exprs := common.collect_globals(file, true) + collect_imports(collection, file) + for expr in exprs { symbol: Symbol |