parsetools (version 0.1.1)

all_root_nodes: Find all root node from parse data

Description

A root node in a file is a standalone expression, such as in source file a function definition. when discussing a subset it is any expression that does not have a parent in the subset.

Usage

all_root_nodes(pd, include.groups = TRUE)

Arguments

pd

The parse-data information

include.groups

descend into grouped code {}?

Value

parse-data with for the root nodes.