evo_ast

package
v0.0.0-...-7ea70c7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASTHandler

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

func NewASTHandler

func NewASTHandler(decorator *decorator.Decorator, fileHandler *FileHandler, statementHandler *StatementHandler, unaryHandler *UnaryHandler, binaryHandler *BinaryHandler) *ASTHandler

func (*ASTHandler) Post

func (a *ASTHandler) Post(c *dstutil.Cursor) bool

func (*ASTHandler) Pre

func (a *ASTHandler) Pre(c *dstutil.Cursor) bool

func (*ASTHandler) SetFileSet

func (a *ASTHandler) SetFileSet(fset *token.FileSet)

func (*ASTHandler) SetFileSource

func (a *ASTHandler) SetFileSource(src string)

type BinaryHandler

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

func NewBinaryHandler

func NewBinaryHandler(pkgPath string, objectives *[]string) *BinaryHandler

func (*BinaryHandler) Handle

func (b *BinaryHandler) Handle(expr *dst.BinaryExpr, pos token.Position, cursor *dstutil.Cursor, fileName string) bool

type FileHandler

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

func NewFileHandler

func NewFileHandler(pkgPath string, objectives *[]string) *FileHandler

func (*FileHandler) Handle

func (f *FileHandler) Handle(file *dst.File, fileName string) bool

type StatementHandler

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

func NewStatementHandler

func NewStatementHandler(pkgPath string, objectives *[]string) *StatementHandler

func (*StatementHandler) Handle

func (s *StatementHandler) Handle(stmt dst.Stmt, pos token.Position, cursor *dstutil.Cursor, fileName string, fileSet *token.FileSet, astNode ast.Node) bool

type UnaryHandler

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

func NewUnaryHandler

func NewUnaryHandler(pkgPath string) *UnaryHandler

func (*UnaryHandler) Handle

func (b *UnaryHandler) Handle(expr *dst.UnaryExpr, pos token.Position, cursor *dstutil.Cursor, fileName string) bool

Jump to

Keyboard shortcuts

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