builder

package
v0.0.0-...-bf2e619 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const FUZZ_DEP_IMPORT_AS = "__tidb_go_fuzz_dep"

`import github.com/Illyrix/tidb-go-fuzz-dep as "tidb_go_fuzz_dep"“

View Source
const FUZZ_DEP_IMPORT_NAME = "github.com/Illyrix/tidb-go-fuzz/dep"

Variables

This section is empty.

Functions

func AddListenStart

func AddListenStart(root string)

inject calling `tidb_go_fuzz.Listen()` on startup

func CompileTidb

func CompileTidb(root string)

func InstallDep

func InstallDep(root string)

`go add .../tidb-go-fuzz/dep`

Types

type Visitor

type Visitor struct {
	FSet    *token.FileSet
	Changed bool
	// contains filtered or unexported fields
}

func NewVisitorPtr

func NewVisitorPtr(fset *token.FileSet) *Visitor

func (*Visitor) AddImportDecl

func (v *Visitor) AddImportDecl(aFile *ast.File)

inject `import ".../tidb-go-fuzz/dep" as ...` into where Counter appears

func (*Visitor) Clone

func (v *Visitor) Clone() *Visitor

for recursive visit

func (*Visitor) Visit

func (v *Visitor) Visit(n ast.Node) ast.Visitor

Jump to

Keyboard shortcuts

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