astutil

package
v0.0.0-...-7014987 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAmbiguousOuterDecl = errors.New("ambiguous outer declaration name")

Functions

func ExprName

func ExprName(expr ast.Expr) (string, bool)

func FunctionName

func FunctionName(fn *ast.FuncDecl) (string, error)

func IsQualified

func IsQualified(name string) bool

func OuterDeclName

func OuterDeclName(path []ast.Node) (string, error)

func Qualify

func Qualify(names ...string) string

func Unqualify

func Unqualify(name string) []string

func Walk

func Walk(fileAst *ast.File, fn func([]ast.Node, ast.Node) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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