Description Usage Arguments Author(s) See Also
This function is used to traverse the entire collection of nodes and find the nodes that correspond to the type(s) of interest. These might be top-level variable declarations, routines, data structure definitions, and so on.
1 | getNodeByType(parser, types, from)
|
parser |
the TU parser object that is a collection of the TU nodes. |
types |
a character vector giving the names of the classes of the nodes for which we are searching. |
from |
a number giving the index of the node in the parser list at which to start the search. This allows us to start a search at different points, and continue looking at a point ended in a previous search. |
Duncan Temple Lang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.