@eagleoutice/flowr - v2.13.1
    Preparing search index...

    Options for staticSlice.

    interface StaticSliceOptions {
        ast: NormalizedAst;
        cache?: Map<string, Set<NodeId>>;
        ctx: ReadOnlyFlowrAnalyzerContext;
        direction?: SliceDirection;
        ids: readonly NodeId[];
        includeCallees?: boolean;
        info: DataflowInformation;
        sliceGraph?: DataflowGraph<DataflowGraphVertexInfo, DfEdge>;
        threshold?: number;
    }
    Index

    Properties

    Normalized AST, used for id resolution and nesting info.

    cache?: Map<string, Set<NodeId>>

    Memoization cache that can be shared across multiple slices on the same graph.

    The analyzer context (environments, configuration).

    direction?: SliceDirection

    Whether to slice forward or backward. Defaults to SliceDirection.Backward.

    ids: readonly NodeId[]

    Seed node ids to start the BFS from. At least one is required.

    includeCallees?: boolean

    If set (and slicing backward), continue the slice past a function-definition boundary: whenever the slice reaches a node that lives inside a function definition, also include the vertex that binds/defines the function (e.g. f <- function(...)) as well as all of its call sites (and their arguments). Defaults to false (slicing stops at the function-definition boundary, the historic behavior).

    Dataflow information including the graph to traverse.

    Pre-built graph to use for BFS traversal instead of (possibly inverting) info.graph. info.graph is still consulted for function-call resolution, so it must remain the non-inverted original. Used by staticDice to pass a reduced-and-inverted graph in a single allocation.

    threshold?: number

    Maximum BFS visits before the algorithm switches to over-approximation (includes everything). Defaults to 75.