UNPKG

@eagleoutice/flowr-dev

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

23 lines (22 loc) 1.54 kB
import { FlowrAnalyzerPackageVersionsPlugin } from './flowr-analyzer-package-versions-plugin'; import { SemVer } from 'semver'; import type { FlowrAnalyzerContext } from '../../context/flowr-analyzer-context'; import type { FlowrConfig } from '../../../config'; export declare const libraryLog: import("tslog").Logger<import("tslog").ILogObj>; /** How the fallback searches for an installed package, see `solver.sigdb.installedLibrary`. */ export type InstalledLibraryOptions = NonNullable<FlowrConfig['solver']['sigdb']['installedLibrary']>; /** * Fills in packages no signature database knows from the copy installed on this machine: a package that CRAN * archived (`maptools`, `rgdal`, ...) is in no database, but if it is installed, its `NAMESPACE` states its * exports just as well. Off unless `solver.sigdb.installedLibrary.enabled` says otherwise, and consulted only * for a package nothing else could resolve, so it never overrides a database entry. */ export declare class FlowrAnalyzerPackageVersionsLibraryPlugin extends FlowrAnalyzerPackageVersionsPlugin { readonly name = "flowr-analyzer-package-version-library-plugin"; readonly description = "Recovers the exports of packages no database knows from their installed copy."; readonly version: SemVer; private readonly overrides?; /** @param overrides - options replacing what `solver.sigdb.installedLibrary` states, `enabled` included */ constructor(overrides?: Partial<InstalledLibraryOptions>); process(ctx: FlowrAnalyzerContext): void; }