ast

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

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultSelIndent = &ast.Ident{
		Name: "Print",
	}
	DefaultXIdent = &ast.Ident{
		Name: "trace_go",
	}
	DefaultSelectorExpr = &ast.SelectorExpr{
		X:   DefaultXIdent,
		Sel: DefaultSelIndent,
	}
	DefaultImportPath = "github.com/samxiaogo/trace_go"
)

Functions

func NewDeferCall

func NewDeferCall(expr []ast.Expr, token token.Pos) *ast.DeferStmt

func NewSelector

func NewSelector(tokenPos token.Pos) *ast.SelectorExpr

func ParseAndAdd

func ParseAndAdd(fileName string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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