Interface ReadonlyFlowrAnalysisProvider interface ReadonlyFlowrAnalysisProvider { controlflow ( simplifications ?: readonly (
| "unique-cf-sets" | "analyze-dead-code" | "remove-dead-code" | "to-basic-blocks" )
[] , kind ?: CfgKind , force ?: boolean , ) : Promise < ControlFlowInformation < CfgSimpleVertex > > ; dataflow ( force ?: boolean , ) : Promise < DataflowInformation & PipelinePerStepMetaInformation > ; flowrConfig : FlowrConfigOptions ; inspectContext () : ReadOnlyFlowrAnalyzerContext ; normalize ( force ?: boolean , ) : Promise < NormalizedAst < ParentInformation , RNode < ParentInformation > > & PipelinePerStepMetaInformation , > ; parse ( force ?: boolean , ) : Promise < ParseStepOutput < string | Tree > & PipelinePerStepMetaInformation > ; parserInformation () : Promise < TreeSitterInformation | RShellInformation > ; query < Types extends | "search" | "config" | "origin" | "dataflow" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "dependencies" | "location-map" | "happens-before" | "inspect-higher-order" | "resolve-value" | "project" | "linter" = | "search" | "config" | "origin" | "dataflow" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "dependencies" | "location-map" | "happens-before" | "inspect-higher-order" | "resolve-value" | "project" | "linter" , > ( query : Queries < Types > , ) : Promise < QueryResults < Types > > ; runFull ( force ?: boolean ) : Promise < void > ; runSearch < Search extends FlowrSearchLike > ( search : Search , ) : Promise < GetSearchElements < SearchOutput < Search > > > ; sendCommandWithOutput ( command : string , addonConfig ?: Partial < OutputCollectorConfiguration > , ) : Promise < string [] > ; } ReadonlyFlowrAnalysisProvider
Hierarchy-Diagram
Properties Methodscontrolflow Parameters Optionalsimplifications : readonly ( | "unique-cf-sets" | "analyze-dead-code" | "remove-dead-code" | "to-basic-blocks" )[] Optionalkind : CfgKind Optionalforce : boolean query query < Types extends | "search" | "config" | "origin" | "dataflow" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "dependencies" | "location-map" | "happens-before" | "inspect-higher-order" | "resolve-value" | "project" | "linter" = | "search" | "config" | "origin" | "dataflow" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "dependencies" | "location-map" | "happens-before" | "inspect-higher-order" | "resolve-value" | "project" | "linter" , > ( query : Queries < Types > , ) : Promise < QueryResults < Types > > Type Parameters Types extends | "search" | "config" | "origin" | "dataflow" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "dependencies" | "location-map" | "happens-before" | "inspect-higher-order" | "resolve-value" | "project" | "linter" = | "search" | "config" | "origin" | "dataflow" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "dependencies" | "location-map" | "happens-before" | "inspect-higher-order" | "resolve-value" | "project" | "linter" run Full runFull ( force ?: boolean ) : Promise < void > send Command With Output Returns Promise < string [] >
Exposes the central analyses and information provided by the FlowrAnalyzer to the linter, search, and query APIs. This allows us to exchange the underlying implementation of the analyzer without affecting the APIs.