astutil

package
v0.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportedIndividualTypeOrValueDecls

func ExportedIndividualTypeOrValueDecls(decls ...ast.Decl) []ast.Decl

func ExtractImportDecls

func ExtractImportDecls(decls ...ast.Decl) []ast.Decl

func FuncDecls

func FuncDecls(decls ...ast.Decl) []ast.Decl

func HasCapitalName

func HasCapitalName(ident *ast.Ident) bool

func SymbolNameFromTypeOrValueDecls

func SymbolNameFromTypeOrValueDecls(decls ...ast.Decl) []string

func UnexportedIndividualTypeOrValueDecls

func UnexportedIndividualTypeOrValueDecls(decls ...ast.Decl) []ast.Decl

Types

type ExportedExprIdentUpdater

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

func NewExportedExprIdentUpdater

func NewExportedExprIdentUpdater(updater func(*ast.Ident) ast.Expr) *ExportedExprIdentUpdater

func (*ExportedExprIdentUpdater) Visit

Jump to

Keyboard shortcuts

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