// TreesStringTree prints out a whole tree in LISP form. [getNodeText] is used on the // node payloads to get the text for the nodes. Detects parse trees and extracts data appropriately. func TreesStringTree(tree Tree, ruleNames []string, recog Recognizer) string { … } func TreesGetNodeText(t Tree, ruleNames []string, recog Parser) string { … } // TreesGetChildren returns am ordered list of all children of this node // //goland:noinspection GoUnusedExportedFunction func TreesGetChildren(t Tree) []Tree { … } // TreesgetAncestors returns a list of all ancestors of this node. The first node of list is the root // and the last node is the parent of this node. // //goland:noinspection GoUnusedExportedFunction func TreesgetAncestors(t Tree) []Tree { … } //goland:noinspection GoUnusedExportedFunction func TreesFindAllTokenNodes(t ParseTree, ttype int) []ParseTree { … } //goland:noinspection GoUnusedExportedFunction func TreesfindAllRuleNodes(t ParseTree, ruleIndex int) []ParseTree { … } func TreesfindAllNodes(t ParseTree, index int, findTokens bool) []ParseTree { … } func treesFindAllNodes(t ParseTree, index int, findTokens bool, nodes *[]ParseTree) { … } //goland:noinspection GoUnusedExportedFunction func TreesDescendants(t ParseTree) []ParseTree { … }