Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions internal/cli/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,6 @@ func normalizeSymbolInput(input string) string {
return s
}

// extractBaseName extracts the last meaningful name component from an input string.
// For "func:cmd/server:main" it returns "main".
// For "method:internal/wallet:UpdateBalance" it returns "UpdateBalance".
// For "main" it returns "main" unchanged.
func extractBaseName(input string) string {
// Find the last colon or dot separator
lastColon := strings.LastIndex(input, ":")
lastDot := strings.LastIndex(input, ".")
lastSep := lastColon
if lastDot > lastSep {
lastSep = lastDot
}
if lastSep >= 0 && lastSep < len(input)-1 {
return input[lastSep+1:]
}
return input
}

// resolveSymbolID normalizes user input for symbol lookups (Issue 4 fix).
// It tries multiple strategies:
Expand Down
5 changes: 1 addition & 4 deletions internal/parser/golang/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ func isStdlibImport(importPath, moduleName string) bool {
return !strings.Contains(firstSeg, ".")
}

// isInternalModulePath checks if the import path belongs to the current module.
func isInternalModulePath(path, moduleName string) bool {
return moduleName != "" && strings.HasPrefix(path, moduleName)
}


// StructFieldInfo holds the type information for a struct field.
type StructFieldInfo struct {
Expand Down
Loading