Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Break ¶
func Break()
Break terminates the traversal of the AST. Must not be called outside a traversal function.
func TraverseFile ¶
TraverseFile traverses the AST of a Go file, calling f with a slice containing the full path of nodes leading to the current node. The last element is the current node.
func TraverseNode ¶
TraverseNode traverses the subtree of a ast.Node, calling f with a slice containing the full path of nodes leading to the current node. The last element is the current node.
func TraverseSource ¶
TraverseSource traverses the AST of a Go source string, calling f with a slice containing the full path of nodes leading to the current node. The last element is the current node.
Types ¶
Click to show internal directories.
Click to hide internal directories.