feat: add reference
This commit is contained in:
@@ -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 ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user