read_raw_ast_nodes: Raw abstract syntax tree from a source code file

Description Usage Arguments Value

View source: R/functions.R

Description

Reads the source code file, runs PMD Source Analyzer and returns the war Abstract Syntax Tree

Usage

1
2
3
4
5
6
7
8
read_raw_ast_nodes(
  code_location,
  output_location,
  pmd_location,
  blockrules_location,
  alerts = NA,
  include_file_in_output = FALSE
)

Arguments

code_location

location of a file containing the source code

output_location

temporary output where xml from PMD will be written

pmd_location

location of PMD.bat

blockrules_location

location of xml containing the blockrules

Value

a dataframe containing the raw AST, with all the nodes captured from source code


crotman/kludgenudger documentation built on Oct. 19, 2021, 7:30 p.m.