UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

26 lines 700 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RUnaryOp = void 0; const model_1 = require("../model"); const type_1 = require("../type"); const operators_1 = require("../operators"); /** * Helper for working with {@link RUnaryOp} AST nodes. */ exports.RUnaryOp = { ...model_1.RNode, name: 'RUnaryOp', /** * Type guard for {@link RUnaryOp} nodes. */ is(node) { return node?.type === type_1.RType.UnaryOp; }, /** * Get the operator information for a binary operator node. */ getOperatorInfo(node) { return operators_1.OperatorDatabase[node.operator]; } }; //# sourceMappingURL=r-unary-op.js.map