UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

25 lines (24 loc) 1.12 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'; /** * This plugin provides supports for the identification of license files. */ export declare class FlowrAnalyzerLicenseFilePlugin extends FlowrAnalyzerFilePlugin { readonly name = "flowr-analyzer-license-files-plugin"; readonly description = "This plugin provides support for loading license files."; readonly version: SemVer; private readonly pathPattern; /** * Creates a new instance of the TEST file plugin. * @param pathPattern - The pathPattern to identify TEST files, see {@link FileNamePattern} for the default pathPattern. */ constructor(pathPattern?: RegExp); applies(file: PathLike): boolean; /** * Processes the given file, assigning it the {@link FileRole.License} role. */ process(_ctx: FlowrAnalyzerContext, file: FlowrFileProvider): FlowrFileProvider; }