python

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 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 PythonRunner

type PythonRunner struct {
	Configuration *configuration.Configuration
	// contains filtered or unexported fields
}

func (PythonRunner) DumpAST

func (r PythonRunner) DumpAST() []*pb.File

DumpAST parses Python files and returns in-memory AST objects

func (*PythonRunner) Ensure

func (r *PythonRunner) Ensure() error

Prepare the engine

func (PythonRunner) Finish

func (r PythonRunner) Finish() error

Cleanups the engine

func (PythonRunner) IsRequired

func (r PythonRunner) IsRequired() bool

IsRequired returns true when analyzed files are concerned by the programming language

func (PythonRunner) Name

func (r PythonRunner) Name() string

func (PythonRunner) Parse

func (r PythonRunner) Parse(path string) (*pb.File, error)

Parse a file and return a protobuf-compatible AST object (no store)

func (*PythonRunner) SetConfiguration

func (r *PythonRunner) SetConfiguration(configuration *configuration.Configuration)

Give the configuration to the engine

func (*PythonRunner) SetProgressbar

func (r *PythonRunner) SetProgressbar(progressbar *pterm.SpinnerPrinter)

Give a UI progress bar to the engine

type TreeSitterAdapter

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

func NewTreeSitterAdapter

func NewTreeSitterAdapter(src []byte) *TreeSitterAdapter

func (*TreeSitterAdapter) AttachQualified

func (a *TreeSitterAdapter) AttachQualified(parentClass string, fn string) string

func (*TreeSitterAdapter) Decision

func (*TreeSitterAdapter) EachChildBody

func (a *TreeSitterAdapter) EachChildBody(body *sitter.Node, yield func(*sitter.Node))

func (*TreeSitterAdapter) EachParamIdent

func (a *TreeSitterAdapter) EachParamIdent(params *sitter.Node, yield func(string))

func (*TreeSitterAdapter) Imports

func (*TreeSitterAdapter) IsClass

func (a *TreeSitterAdapter) IsClass(n *sitter.Node) bool

func (*TreeSitterAdapter) IsFunction

func (a *TreeSitterAdapter) IsFunction(n *sitter.Node) bool

func (*TreeSitterAdapter) IsModule

func (a *TreeSitterAdapter) IsModule(n *sitter.Node) bool

func (*TreeSitterAdapter) Language

func (a *TreeSitterAdapter) Language() *sitter.Language

func (*TreeSitterAdapter) ModuleNameFromPath

func (a *TreeSitterAdapter) ModuleNameFromPath(path string) string

func (*TreeSitterAdapter) NodeBody

func (a *TreeSitterAdapter) NodeBody(n *sitter.Node) *sitter.Node

func (*TreeSitterAdapter) NodeName

func (a *TreeSitterAdapter) NodeName(n *sitter.Node) string

func (*TreeSitterAdapter) NodeParams

func (a *TreeSitterAdapter) NodeParams(n *sitter.Node) *sitter.Node

func (*TreeSitterAdapter) SetSource

func (a *TreeSitterAdapter) SetSource(src []byte)

Jump to

Keyboard shortcuts

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