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

    Calculates and returns the static backward or forward slice from the given criteria

    interface StaticSliceQuery {
        criteria: SlicingCriteria;
        direction?: SliceDirection;
        includeCallees?: boolean;
        inlineFull?: InlineFull;
        inlineSources?: InlineSources;
        name?: string;
        noMagicComments?: boolean;
        noReconstruction?: boolean;
        perFile?: boolean;
        removal?: boolean;
        reportPackages?: boolean;
        type: "static-slice";
    }

    Hierarchy (View Summary)

    Index
    criteria: SlicingCriteria

    The slicing criteria to use

    direction?: SliceDirection

    The direction to slice in. Defaults to backward slicing if unset.

    includeCallees?: boolean

    If set (and slicing backward), continue the slice past a function-definition boundary, also including the definition's binding and call sites. Defaults to false.

    inlineFull?: InlineFull

    Inline every file into the reconstruction, in flowR's loading order (which respects implicit sources), independent of whether it is sourced explicitly; 'banner' additionally precedes each file with a banner comment naming it. Overrides inlineSources.

    inlineSources?: InlineSources

    Inline resolvable source() calls into the reconstruction so the result is a single self-contained R text. Cyclic and unresolvable source() calls are kept verbatim and reported via reconstruct.inlineWarnings.

    name?: string

    What to call this slice. The results are keyed by it, so a named slice comes back under its name rather than under the serialized query that produced it. Two slices of one request must not share a name.

    noMagicComments?: boolean

    Should the magic comments (force-including lines within the slice) be ignored?

    noReconstruction?: boolean

    do not reconstruct the slice into readable code

    perFile?: boolean

    Reconstruct the slice as the project's files rather than as one program, reported in ReconstructionResult#files in loading order with their paths. Without this only the entry file is reconstructed. Overridden by inlineSources/inlineFull, which produce the opposite.

    removal?: boolean

    Compute the removal slice instead (see staticRemovalSlice): the code that only exists for the criteria, which can go while the rest keeps working. The result holds the removed statements, and the reconstruction is the program without them. Ignores the direction.

    reportPackages?: boolean

    Also report the packages the slice calls into; see Dataflow.packagesOf.

    type: "static-slice"

    used to select the query type :)