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

    Variable GlobalCachesConst

    GlobalCaches: {
        clear(this: void, scope: CacheScope): void;
        map<K, V>(
            this: void,
            name: string,
            scope: CacheScope,
            cap: number,
        ): BoundedMap<K, V>;
        register(
            this: void,
            name: string,
            scope: CacheScope,
            size: () => number | undefined,
            clear: () => void,
            cap?: number,
        ): void;
        sizes(
            this: void,
        ): Record<
            string,
            { cap: number
            | undefined; scope: CacheScope; size: number | undefined },
        >;
    } = ...

    The module-level caches of flowR, so they can be released and inspected in one place. Each cache registers once under a fixed name, FlowrAnalyzerContext#reset releases the CacheScope.Analysis ones.

    Type Declaration

    • clear: function
    • map: function
    • register: function
      • Register a cache under name, by how to tell its size and how to release it.

        Parameters

        • this: void
        • name: string
        • scope: CacheScope
        • size: () => number | undefined
        • clear: () => void
        • Optionalcap: number

        Returns void

    • sizes: function
      • The size of every registered cache by name, for tests and diagnostics.

        Parameters

        • this: void

        Returns Record<
            string,
            { cap: number
            | undefined; scope: CacheScope; size: number | undefined },
        >