Documentation
¶
Index ¶
- func NewCodeAnalyzer(cwd string) contracts.ICodeAnalyzer
- type CodeAnalyzer
- func (analyzer *CodeAnalyzer) ApplyChanges(relativePath string) error
- func (analyzer *CodeAnalyzer) ExtractCodeChanges(text string) ([]models.CodeChange, error)
- func (analyzer *CodeAnalyzer) GetProjectFiles(rootDir string) ([]models.FileData, error)
- func (analyzer *CodeAnalyzer) ProcessFile(filePath string, sourceCode []byte) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCodeAnalyzer ¶
func NewCodeAnalyzer(cwd string) contracts.ICodeAnalyzer
NewCodeAnalyzer initializes a new CodeAnalyzer.
Types ¶
type CodeAnalyzer ¶
type CodeAnalyzer struct {
Cwd string
}
CodeAnalyzer handles the analysis of project files.
func (*CodeAnalyzer) ApplyChanges ¶
func (analyzer *CodeAnalyzer) ApplyChanges(relativePath string) error
ApplyChanges Apply changes by replacing original files with the temp files
func (*CodeAnalyzer) ExtractCodeChanges ¶ added in v1.1.0
func (analyzer *CodeAnalyzer) ExtractCodeChanges(text string) ([]models.CodeChange, error)
func (*CodeAnalyzer) GetProjectFiles ¶
func (analyzer *CodeAnalyzer) GetProjectFiles(rootDir string) ([]models.FileData, error)
func (*CodeAnalyzer) ProcessFile ¶
func (analyzer *CodeAnalyzer) ProcessFile(filePath string, sourceCode []byte) []string
ProcessFile processes a single file using Tree-sitter for syntax analysis (for .cs files).
Click to show internal directories.
Click to hide internal directories.