UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

23 lines (22 loc) 1.05 kB
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 { FlowrRMarkdownFile } from '../files/flowr-rmarkdown-file'; /** * The plugin provides support for R Markdown (`.rmd`) files */ export declare class FlowrAnalyzerRmdFilePlugin extends FlowrAnalyzerFilePlugin { readonly name = "rmd-file-plugin"; readonly description = "Parses R Markdown files"; readonly version: SemVer; private readonly pattern; /** * Creates a new instance of the R Markdown file plugin. * @param filePattern - The pattern to identify R Markdown files, see {@link RmdPattern} for the default pattern. */ constructor(filePattern?: RegExp); applies(file: PathLike): boolean; protected process(_ctx: FlowrAnalyzerContext, arg: FlowrFileProvider<string>): FlowrRMarkdownFile; }