Documentation
¶
Overview ¶
Package goanalysis owns module-aware Go semantic loading for repomap.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallEdge ¶
type CallEdge struct {
CallerFile, CallerSymbol string
CallerLine int
CalleeFile, CalleeSymbol string
CalleeReceiver string
}
CallEdge is a source-backed caller to callee relationship from CHA.
type Diagnostic ¶
Diagnostic is a package loader or type-checker diagnostic. Diagnostics do not discard successfully loaded packages.
type File ¶
type File struct {
Path string
PackageName string
PackagePath string
Syntax *ast.File
FileSet *token.FileSet
Types *types.Package
TypesInfo *types.Info
}
File is an active compiled Go file and its package ownership.
type Implementation ¶
type Implementation struct {
TypeFile string
TypeName string
InterfacePath string
InterfaceName string
}
Implementation records a concrete named type satisfying an interface.
type Options ¶
type Options struct {
Root string
Environment []string
BuildFlags []string
IncludeCalls bool
IncludeTests bool
}
Options describes the active Go build context used for a repository load.
type Result ¶
type Result struct {
Files map[string]File
Diagnostics []Diagnostic
Edges []Edge
Calls []CallEdge
Implementations []Implementation
}
Result is the canonical semantic graph for one repository load.
Click to show internal directories.
Click to hide internal directories.