genFunctionCollector | R Documentation |
These functions are used to create closure functions
that collect information across calls.
The update function returned can be used as the visitor
function in calls to parseTU
and visitChildren
.
genFunctionCollector(makeRoutine = FALSE, clone = TRUE)
genCallCollector()
genDataStructCollector(leaveAsCursor = FALSE)
genDefinesCollector(names = character())
genEnumCollector()
genVariablesCollector(clone = TRUE, recurse = FALSE)
combineCollectors(..., .funs = list())
makeRoutine |
logical scalar value. If |
leaveAsCursor |
a logical value that controls whether we return the cursors representing the data types or convert them to R objects. |
clone |
a logical value. If |
names |
ignored for now |
... |
the individual collectors that are to be combined. |
recurse |
logical value that indicates whether to recursively descend down the cursor tree or to process only the top-level objects, e.g., the top-level declarations. |
.funs |
a list of the collectors to be combined. |
The collectors typically return an S4CursorVisitor-class
object.
Duncan Temple Lang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.