astutil

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNoopOfStatement

func CreateNoopOfStatement(stmt ast.Stmt) ast.Stmt

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

func CreateNoopOfStatements

func CreateNoopOfStatements(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(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