subnodesOfCode

fun subnodesOfCode(node: Node?, searchCode: String): List<Node>

Filters the nodes in the AST subtree at root node for Nodes with the specified code.

Return

a list of nodes with the specified String.

Parameters

node

root of the subtree that is searched.

searchCode

exact code that a node needs to have.