golang

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASTParser

type ASTParser struct {
	// contains filtered or unexported fields
}

ASTParser uses Go's native AST parser for processing Go source code

func NewASTParser

func NewASTParser() *ASTParser

NewASTParser creates a new AST parser

func (*ASTParser) ProcessSource

func (p *ASTParser) ProcessSource(ctx context.Context, source []byte, filename string) (*ir.DistilledFile, error)

ProcessSource processes Go source code using go/parser

type Processor

type Processor struct {
	processor.BaseProcessor
}

Processor handles Go source code processing

func NewProcessor

func NewProcessor() *Processor

NewProcessor creates a new Go processor

func (*Processor) Process

func (p *Processor) Process(ctx context.Context, reader io.Reader, filename string) (*ir.DistilledFile, error)

Process implements processor.LanguageProcessor

func (*Processor) ProcessWithOptions

func (p *Processor) ProcessWithOptions(ctx context.Context, reader io.Reader, filename string, opts processor.ProcessOptions) (*ir.DistilledFile, error)

ProcessWithOptions implements processor.LanguageProcessor

Jump to

Keyboard shortcuts

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