UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

29 lines 817 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RString = void 0; const model_1 = require("../model"); const type_1 = require("../type"); const semver_1 = require("semver"); const versions_1 = require("../versions"); /** * Helper for working with {@link RString} AST nodes. */ exports.RString = { ...model_1.RNode, name: 'RString', /** * Type guard for RString nodes. * @see {@link RString} */ is(node) { return node?.type === type_1.RType.String; }, /** * Returns the minimum R version that supports raw strings (in a stable format). * @see {@link RString} */ rawStringAvailableFromRVersion() { return new semver_1.SemVer(versions_1.MIN_VERSION_RAW_STABLE); } }; //# sourceMappingURL=r-string.js.map