@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
26 lines • 707 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RBinaryOp = void 0;
const model_1 = require("../model");
const type_1 = require("../type");
const operators_1 = require("../operators");
/**
* Helper for working with {@link RBinaryOp} AST nodes.
*/
exports.RBinaryOp = {
...model_1.RNode,
name: 'RBinaryOp',
/**
* Type guard for {@link RBinaryOp} nodes.
*/
is(node) {
return node?.type === type_1.RType.BinaryOp;
},
/**
* Get the operator information for a binary operator node.
*/
getOperatorInfo(node) {
return operators_1.OperatorDatabase[node.operator];
}
};
//# sourceMappingURL=r-binary-op.js.map