goast

package
v0.398.0 Latest Latest
Warning

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

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

Documentation

Overview

Package goast provides a useful visitor for the Go AST.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Visit

func Visit(node goast.Node, v VisitorFunc) error

Visit all nodes in the Go AST rooted at node, in depth-first order.

The visitor function can call next() to continue traversal.

Note that this is based on a direct copy of ast.Walk.

Types

type VisitorFunc

type VisitorFunc func(stack []goast.Node, next func() error) error

Jump to

Keyboard shortcuts

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