Add one or multiple files to the analyzer's context.
One or multiple file paths, file providers, or parse requests from file.
Add one or multiple requests to analyze.
One or multiple requests or a file path (with the file:// protocol). If you just enter a string without the fileProtocol, it will be interpreted as R code.
addFile - for adding files to the analyzer's context.
Returns project context information. If you are a user that wants to inspect the context, prefer inspectContext instead. Please be aware that modifications to the context may break analyzer assumptions.
Get the control flow graph (CFG) for the request.
Optionalsimplifications: readonly (Simplification passes to be applied to the CFG.
Optionalkind: CfgKindThe kind of CFG that is requested. By default, the CFG without dataflow information is returned.
Optionalforce: booleanDo not use the cache, instead force new analyses.
ReadonlyFlowrAnalysisProvider#peekControlflow - to get the CFG if already available without triggering a new computation.
Get the dataflow graph for the request.
Optionalforce: booleanDo not use the cache, instead force new analyses.
ReadonlyFlowrAnalysisProvider#peekDataflow - to get the dataflow graph if already available without triggering a new computation.
Returns a read-only version of the project context information. This is the preferred method for users that want to inspect the context.
Get the normalized abstract syntax tree for the request.
Optionalforce: booleanDo not use the cache, instead force new analyses.
ReadonlyFlowrAnalysisProvider#peekNormalize - to get the normalized AST if already available without triggering a new computation.
Get the parse output for the request.
The parse result type depends on the KnownParser used by the analyzer.
Optionalforce: booleanDo not use the cache, instead force a new parse.
ReadonlyFlowrAnalysisProvider#peekParse - to get the parse output if already available without triggering a new computation.
Returns a set of additional data and helper functions exposed by the underlying KnownParser, including the parser's BaseParserInformation.name and corresponding version information.
Peek at the control flow graph (CFG) for the request, if it was already computed.
Optionalsimplifications: readonly (Optionalkind: CfgKindPeek at the dataflow graph for the request, if it was already computed.
Peek at the normalized abstract syntax tree for the request, if it was already computed.
Peek at the parse output for the request, if it was already computed.
Access the query API for the request.
Reset the analyzer state, including the context and the cache.
This executes all steps of the core analysis (parse, normalize, dataflow).
Optionalforce: booleanRun a search on the current analysis.
Extends the ReadonlyFlowrAnalysisProvider with methods that allow modifying the analyzer state.