types

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 2 Imported by: 0

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

type ImportInfo struct {
	Path   string
	Alias  string
	Line   int
	Column int
}

ImportInfo contains information about imports

type ParameterInfo

type ParameterInfo struct {
	Name string
	Type string
}

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

type VariableInfo

type VariableInfo struct {
	Name       string
	Type       string
	Line       int
	Column     int
	IsExported bool
	ASTNode    *ast.ValueSpec
}

VariableInfo contains information about variable declarations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL