@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
29 lines • 1.47 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FlowrAnalyzerPackageVersionsPlugin = void 0;
const flowr_analyzer_plugin_1 = require("../flowr-analyzer-plugin");
const semver_1 = require("semver");
/**
* This is the base class for all plugins that identify package and dependency versions used in the project.
* These plugins interplay with the {@link FlowrAnalyzerDependenciesContext} to gather information about the packages used in the project.
* See {@link DefaultFlowrAnalyzerPackageVersionsPlugin} for the no-op default implementation.
*/
class FlowrAnalyzerPackageVersionsPlugin extends flowr_analyzer_plugin_1.FlowrAnalyzerPlugin {
type = flowr_analyzer_plugin_1.PluginType.DependencyIdentification;
static defaultPlugin() {
return new DefaultFlowrAnalyzerPackageVersionsPlugin();
}
}
exports.FlowrAnalyzerPackageVersionsPlugin = FlowrAnalyzerPackageVersionsPlugin;
/**
* This is the default no-op implementation of the {@link FlowrAnalyzerPackageVersionsPlugin}.
*/
class DefaultFlowrAnalyzerPackageVersionsPlugin extends FlowrAnalyzerPackageVersionsPlugin {
name = 'default-package-versions-plugin';
description = 'This is the default package versions plugin that does nothing.';
version = new semver_1.SemVer('0.0.0');
process() {
/* we do not need package versions for the analysis to do things! */
}
}
//# sourceMappingURL=flowr-analyzer-package-versions-plugin.js.map