UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

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