@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
23 lines (22 loc) • 1.03 kB
TypeScript
import type { PathLike } from 'fs';
import { SemVer } from 'semver';
import type { FlowrAnalyzerContext } from '../../../context/flowr-analyzer-context';
import { type FlowrFileProvider } from '../../../context/flowr-file';
import { FlowrAnalyzerFilePlugin } from '../flowr-analyzer-file-plugin';
import { FlowrSweaveFile } from '../files/flowr-sweave-file';
/**
* The plugin provides support for Sweave (`.Rnw`) files
*/
export declare class FlowrAnalyzerSweaveFilePlugin extends FlowrAnalyzerFilePlugin {
readonly name = "sweave-file-plugin";
readonly description = "Parses R Sweave files";
readonly version: SemVer;
private readonly pattern;
/**
* Creates a new instance of the Sweave file plugin.
* @param filePattern - The pattern to identify Sweave files, see {@link SweavePattern} for the default pattern.
*/
constructor(filePattern?: RegExp);
applies(file: PathLike): boolean;
protected process(_ctx: FlowrAnalyzerContext, arg: FlowrFileProvider<string>): FlowrSweaveFile;
}