Interface FlowrAnalysisProvider interface FlowrAnalysisProvider { context () : FlowrAnalyzerContext ; controlflow ( simplifications ?: readonly (
| "unique-cf-sets" | "analyze-dead-code" | "remove-dead-code" | "to-basic-blocks" )
[] , useDataflow ?: boolean , force ?: boolean , ) : Promise < ControlFlowInformation < CfgSimpleVertex > > ; controlflowQuick ( 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 > ; parserName () : string ; query < Types extends | "config" | "origin" | "dataflow" | "search" | "dependencies" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "location-map" | "happens-before" | "resolve-value" | "project" | "linter" = | "config" | "origin" | "dataflow" | "search" | "dependencies" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "location-map" | "happens-before" | "resolve-value" | "project" | "linter" , > ( query : Queries < Types > , ) : Promise < QueryResults < Types > > ; reset () : void ; runFull ( force ?: boolean ) : Promise < void > ; runSearch < Search extends FlowrSearchLike > ( search : Search , ) : Promise < GetSearchElements < SearchOutput < Search > > > ; } Properties Methodscontrolflow controlflow ( simplifications ?: readonly (
| "unique-cf-sets" | "analyze-dead-code" | "remove-dead-code" | "to-basic-blocks" )
[] , useDataflow ?: boolean , force ?: boolean , ) : Promise < ControlFlowInformation < CfgSimpleVertex > > Parameters Optional
simplifications : readonly ( | "unique-cf-sets" | "analyze-dead-code" | "remove-dead-code" | "to-basic-blocks" )[] Optional
useDataflow : boolean Optional
force : boolean query query < Types extends | "config" | "origin" | "dataflow" | "search" | "dependencies" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "location-map" | "happens-before" | "resolve-value" | "project" | "linter" = | "config" | "origin" | "dataflow" | "search" | "dependencies" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "location-map" | "happens-before" | "resolve-value" | "project" | "linter" , > ( query : Queries < Types > , ) : Promise < QueryResults < Types > > Type Parameters Types extends | "config" | "origin" | "dataflow" | "search" | "dependencies" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "location-map" | "happens-before" | "resolve-value" | "project" | "linter" = | "config" | "origin" | "dataflow" | "search" | "dependencies" | "call-context" | "control-flow" | "dataflow-lens" | "df-shape" | "normalized-ast" | "id-map" | "dataflow-cluster" | "static-slice" | "lineage" | "location-map" | "happens-before" | "resolve-value" | "project" | "linter" run Full runFull ( force ?: boolean ) : Promise < void >
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.