aboutsummaryrefslogtreecommitdiff
path: root/src/server/collector.odin
diff options
context:
space:
mode:
authormoonz <pmnarimani@gmail.com>2026-01-27 11:31:44 +0100
committermoonz <pmnarimani@gmail.com>2026-01-27 11:31:44 +0100
commitee962b842b6d2fc6f73a427301289e2d19b38c40 (patch)
treec29edc8547a3ab7adcdbfd71816e5a43519287e5 /src/server/collector.odin
parent3dd06aca02d7b10f3f6a7bfb3b618cefaf68ef4a (diff)
feat: added one more test to make sure there are no edge cases
Diffstat (limited to 'src/server/collector.odin')
-rw-r--r--src/server/collector.odin4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/collector.odin b/src/server/collector.odin
index dc7e052..37d3cd8 100644
--- a/src/server/collector.odin
+++ b/src/server/collector.odin
@@ -486,7 +486,6 @@ get_or_create_package :: proc(collection: ^SymbolCollection, pkg_name: string) -
collect_method :: proc(collection: ^SymbolCollection, symbol: Symbol) {
pkg := &collection.packages[symbol.pkg]
- // Skip procedures that are part of proc groups
if symbol.name in pkg.proc_group_members {
return
}
@@ -549,7 +548,6 @@ collect_proc_group_method :: proc(collection: ^SymbolCollection, symbol: Symbol)
continue
}
- // Only add once per distinct method key
if method not_in registered_methods {
registered_methods[method] = true
add_symbol_to_method(collection, pkg, method, symbol)
@@ -580,7 +578,6 @@ get_method_from_first_arg :: proc(
method.pkg = get_index_unique_string(collection, ident.name)
method.name = get_index_unique_string(collection, v.field.name)
case ^ast.Ident:
- // Check if this is a builtin type
if is_builtin_type_name(v.name) {
method.pkg = "$builtin"
} else {
@@ -595,7 +592,6 @@ get_method_from_first_arg :: proc(
}
is_builtin_type_name :: proc(name: string) -> bool {
- // Check all builtin type names from untyped_map
for names in untyped_map {
for builtin_name in names {
if name == builtin_name {