Documentation
¶
Index ¶
- type EnvBinding
- type FunctionRegistry
- func (r *FunctionRegistry) FindByName(name string) []string
- func (r *FunctionRegistry) FindEndingWith(suffix string) []string
- func (r *FunctionRegistry) Register(name, qualifiedName, nodeLabel string)
- func (r *FunctionRegistry) Resolve(calleeName, moduleQN string, importMap map[string]string) string
- func (r *FunctionRegistry) Size() int
- type Pipeline
- type TypeMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvBinding ¶ added in v0.1.0
EnvBinding represents an extracted environment variable with a URL value.
func ScanProjectEnvURLs ¶ added in v0.1.0
func ScanProjectEnvURLs(rootPath string) []EnvBinding
ScanProjectEnvURLs walks the project root, scanning all non-ignored files for env var assignments where the value looks like a URL.
type FunctionRegistry ¶
type FunctionRegistry struct {
// contains filtered or unexported fields
}
FunctionRegistry indexes all Function, Method, and Class nodes by qualified name and simple name for fast call resolution.
func NewFunctionRegistry ¶
func NewFunctionRegistry() *FunctionRegistry
NewFunctionRegistry creates an empty registry.
func (*FunctionRegistry) FindByName ¶
func (r *FunctionRegistry) FindByName(name string) []string
FindByName returns all qualified names with the given simple name.
func (*FunctionRegistry) FindEndingWith ¶
func (r *FunctionRegistry) FindEndingWith(suffix string) []string
FindEndingWith returns all qualified names ending with ".suffix".
func (*FunctionRegistry) Register ¶
func (r *FunctionRegistry) Register(name, qualifiedName, nodeLabel string)
Register adds a node to the registry.
func (*FunctionRegistry) Resolve ¶
func (r *FunctionRegistry) Resolve(calleeName, moduleQN string, importMap map[string]string) string
Resolve attempts to find the qualified name of a callee using a prioritized resolution strategy:
- Import map lookup
- Same-module match
- Project-wide single match by simple name
- Suffix match with import distance scoring
func (*FunctionRegistry) Size ¶
func (r *FunctionRegistry) Size() int
Size returns the number of entries in the registry.