Documentation
¶
Overview ¶
Package astanalysis provides Go code analysis using AST parsing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
Analyzer provides AST-based code analysis
func NewAnalyzer ¶
NewAnalyzer creates a new AST analyzer
func (*Analyzer) AnalyzeFile ¶
AnalyzeFile parses a single Go file and returns its structure
func (*Analyzer) AnalyzePackage ¶
AnalyzePackage analyzes all Go files in a package
type FileInfo ¶
type FileInfo struct {
Path string
Package string
Imports []string
Functions []FunctionInfo
Structs []StructInfo
Interfaces []InterfaceInfo
Variables []VariableInfo
}
FileInfo contains information about a Go file
type FunctionInfo ¶
type FunctionInfo struct {
Name string
Receiver string // For methods
Params []string
Returns []string
Line int
IsExported bool
Doc string
}
FunctionInfo contains function details
type InterfaceInfo ¶
InterfaceInfo contains interface details
type StructInfo ¶
StructInfo contains struct details
Click to show internal directories.
Click to hide internal directories.