Yes, for now we do technically not need a wrapper around the RNode, but this allows us to attach caches etc. just for the respective search.

interface FlowrSearchElementFromQuery<Info> {
    node: RNode<Info>;
    query:
        | "config"
        | "origin"
        | "dataflow"
        | "search"
        | "call-context"
        | "control-flow"
        | "dataflow-lens"
        | "normalized-ast"
        | "id-map"
        | "dataflow-cluster"
        | "static-slice"
        | "lineage"
        | "dependencies"
        | "location-map"
        | "happens-before"
        | "resolve-value"
        | "project"
        | "linter";
    queryResult: BaseQueryResult;
}

Type Parameters

  • Info

Hierarchy (View Summary)

Hierarchy-Diagram

UML class diagram of FlowrSearchElementFromQuery

Properties

node: RNode<Info>
query:
    | "config"
    | "origin"
    | "dataflow"
    | "search"
    | "call-context"
    | "control-flow"
    | "dataflow-lens"
    | "normalized-ast"
    | "id-map"
    | "dataflow-cluster"
    | "static-slice"
    | "lineage"
    | "dependencies"
    | "location-map"
    | "happens-before"
    | "resolve-value"
    | "project"
    | "linter"
queryResult: BaseQueryResult