feat: add reference

This commit is contained in:
2026-04-15 15:23:11 -04:00
parent 562f4bb073
commit 6168e71e19
4 changed files with 102 additions and 66 deletions

View File

@@ -15,7 +15,6 @@ import (
"codexis/db"
)
// ProgressFunc is called for each file being processed.
// current is the 1-based index, total is the total file count, path is the file being processed.
type ProgressFunc func(current, total int, path string)
@@ -260,7 +259,7 @@ func buildSymbolDefs(tags []gotreesitter.Tag, fileID int64, langName string) []s
for _, tag := range tags {
kind := tagKind(tag.Kind)
if kind == "" {
continue // skip references and unknown kinds
continue
}
exported := IsExported(tag.Name, langName)
@@ -307,5 +306,9 @@ func tagKind(kind string) string {
if strings.HasPrefix(kind, prefix) {
return kind[len(prefix):]
}
if kind == "reference.call" {
return "reference"
}
fmt.Println(kind)
return ""
}