Versions in this module Expand all Collapse all v1 v1.3.1 Jun 21, 2025 v1.3.0 Jun 21, 2025 Changes in this version + type ASTComparator struct + func NewASTComparator() *ASTComparator + func (c *ASTComparator) CompareFile(filename string, ourAST *ir.DistilledFile) (*CompareResult, error) + type CompareResult struct + Differences []string + Match bool + MissingInOurs []string + MissingInPython []string + OurNodeCount int + PythonNodeCount int + type ErrorCollector struct + func NewErrorCollector() *ErrorCollector + func (ec *ErrorCollector) AddError(line, column int, message string, kind ParseErrorKind) + func (ec *ErrorCollector) AddWarning(line, column int, message string, kind ParseErrorKind) + func (ec *ErrorCollector) ToDistilledErrors() []ir.DistilledError + type NativeTreeSitterProcessor struct + func NewNativeTreeSitterProcessor() (*NativeTreeSitterProcessor, error) + func (p *NativeTreeSitterProcessor) ProcessSource(ctx context.Context, source []byte, filename string) (*ir.DistilledFile, error) + type ParseError struct + Column int + Kind ParseErrorKind + Line int + Message string + Severity string + type ParseErrorKind string + const ErrorKindIncomplete + const ErrorKindIndentation + const ErrorKindInvalidName + const ErrorKindSyntax + const ErrorKindUnclosedExpr + type Processor struct + func NewProcessor() *Processor + func (p *Processor) EnableTreeSitter() + func (p *Processor) InitializeWASM(ctx context.Context, wasmBytes []byte) error + func (p *Processor) Process(ctx context.Context, reader io.Reader, filename string) (*ir.DistilledFile, error) + func (p *Processor) ProcessFile(filename string, opts processor.ProcessOptions) (*ir.DistilledFile, error) + func (p *Processor) ProcessWithOptions(ctx context.Context, reader io.Reader, filename string, ...) (*ir.DistilledFile, error) + type PythonAST struct + Attributes map[string]interface{} + Classes []PythonClass + Errors []string + Functions []PythonFunction + Imports []PythonImport + Name string + Type string + type PythonClass struct + Bases []string + LineNumber int + Methods []PythonFunction + Name string + type PythonFunction struct + Args []string + Decorators []string + IsAsync bool + LineNumber int + Name string + type PythonImport struct + IsFrom bool + Level int + Module string + Names []string v1.0.0 Jun 18, 2025