Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstantInfo ¶
type ConstantInfo struct {
Name string
Type string
Line int
Column int
IsExported bool
ASTNode *ast.ValueSpec
}
ConstantInfo contains information about constant declarations
type FunctionInfo ¶
type FunctionInfo struct {
Name string
StartLine int
EndLine int
StartColumn int
EndColumn int
Parameters []ParameterInfo
Results []string
IsExported bool
IsMethod bool
ReceiverType string
Complexity int
LineCount int
HasComments bool
ASTNode *ast.FuncDecl
}
FunctionInfo contains detailed information about a function
type GoASTInfo ¶
type GoASTInfo struct {
FilePath string
PackageName string
AST *ast.File
FileSet *token.FileSet
Functions []*FunctionInfo
Types []*TypeInfo
Imports []*ImportInfo
Variables []*VariableInfo
Constants []*ConstantInfo
}
GoASTInfo contains comprehensive AST information for a Go file
type ImportInfo ¶
ImportInfo contains information about imports
type ParameterInfo ¶
ParameterInfo contains information about function parameters
type TypeInfo ¶
type TypeInfo struct {
Name string
Kind string // "struct", "interface", "alias"
StartLine int
EndLine int
StartColumn int
EndColumn int
IsExported bool
FieldCount int // For structs
MethodCount int // For interfaces
ASTNode *ast.TypeSpec
}
TypeInfo contains information about type declarations
Click to show internal directories.
Click to hide internal directories.