UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

24 lines (23 loc) 1.24 kB
import { FlowrAnalyzerFilePlugin } from './flowr-analyzer-file-plugin'; import { SemVer } from 'semver'; import type { PathLike } from 'fs'; import type { FlowrAnalyzerContext } from '../../context/flowr-analyzer-context'; import { FlowrDescriptionFile } from './files/flowr-description-file'; import { type FlowrFileProvider } from '../../context/flowr-file'; export declare const descriptionFileLog: import("tslog").Logger<import("tslog").ILogObj>; /** * This plugin provides support for R `DESCRIPTION` files. */ export declare class FlowrAnalyzerDescriptionFilePlugin extends FlowrAnalyzerFilePlugin { readonly name = "flowr-analyzer-description-file-plugin"; readonly description = "This plugin provides support for DESCRIPTION files and extracts their content into key-value(s) pairs."; readonly version: SemVer; private readonly pattern; /** * Creates a new instance of the DESCRIPTION file plugin. * @param filePattern - The pattern to identify DESCRIPTION files, see {@link DescriptionFilePattern} for the default pattern. */ constructor(filePattern?: RegExp); applies(file: PathLike): boolean; process(_ctx: FlowrAnalyzerContext, file: FlowrFileProvider): FlowrDescriptionFile; }