astutil

package
v0.0.0-...-76d49fd Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNoopOfStatement

func CreateNoopOfStatement(pkg *types.Package, info *types.Info, stmt ast.Stmt) ast.Stmt

CreateNoopOfStatement creates a syntactically safe noop statement out of a given statement.

func CreateNoopOfStatements

func CreateNoopOfStatements(pkg *types.Package, info *types.Info, stmts []ast.Stmt) ast.Stmt

CreateNoopOfStatements creates a syntactically safe noop statement out of a given statement.

func Functions

func Functions(n ast.Node) []*ast.FuncDecl

Functions returns all found functions.

func IdentifiersInStatement

func IdentifiersInStatement(pkg *types.Package, info *types.Info, stmt ast.Stmt) []ast.Expr

IdentifiersInStatement returns all identifiers with their found in a statement.

Types

This section is empty.

Jump to

Keyboard shortcuts

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