getNodeByType: Get TU nodes based on type

Description Usage Arguments Author(s) See Also

Description

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.

Usage

1
getNodeByType(parser, types, from)

Arguments

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.

Author(s)

Duncan Temple Lang

See Also

getRoutines getDataStructures


omegahat/RGCCTranslationUnit documentation built on May 24, 2019, 1:53 p.m.