Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchNodes ¶
func SearchNodes(decl ast.Node, foundNodes *[]*FoundNodes, parents []ast.Node, searchFunction func(node ast.Node, parents []ast.Node, completed *bool) bool, completed *bool)
SearchNodes Searches the Ast-tree. The search function decides what's a match. foundNodes holds all matches including their parents. This allows to modify a method call inside a function, then traverses upwards to modify the containing function parameters as well. Set completed to true inside the search function, if the search should be terminated.
Types ¶
Click to show internal directories.
Click to hide internal directories.