UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

23 lines (22 loc) 1.13 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 type { FlowrFileProvider } from '../../context/flowr-file'; import { FlowrNamespaceFile } from './files/flowr-namespace-file'; /** * This plugin provides support for R `NAMESPACE` files. */ export declare class FlowrAnalyzerNamespaceFilesPlugin extends FlowrAnalyzerFilePlugin { readonly name = "flowr-analyzer-namespace-file-plugin"; readonly description = "This plugin provides support for NAMESPACE files and extracts their content into the NAMESPACEFormat."; readonly version: SemVer; private readonly pattern; /** * Creates a new instance of the NAMESPACE file plugin. * @param filePattern - The pattern to identify NAMESPACE files, see {@link NamespaceFilePattern} for the default pattern. */ constructor(filePattern?: RegExp); applies(file: PathLike): boolean; process(ctx: FlowrAnalyzerContext, file: FlowrFileProvider): FlowrNamespaceFile; }