Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeParser ¶
type CodeParser struct {
// contains filtered or unexported fields
}
CodeParser handles code parsing
func NewCodeParser ¶
func NewCodeParser(enabled bool) *CodeParser
NewCodeParser creates a new code parser
func (*CodeParser) GetContext ¶
func (p *CodeParser) GetContext(content []byte, lineNum int, contextLines int) string
GetContext extracts context around a line number
func (*CodeParser) ParseFile ¶
func (p *CodeParser) ParseFile(filePath string, content []byte) (*ParsedCode, error)
ParseFile parses a file and extracts code structure
Click to show internal directories.
Click to hide internal directories.