UNPKG

xpath-ts2

Version:

DOM 3 and 4 XPath 1.0 implementation for browser and Node.js environment with support for typescript 5.

14 lines 518 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PlusOperation = void 0; const binary_operation_1 = require("./binary-operation"); class PlusOperation extends binary_operation_1.BinaryOperation { evaluate(c) { return this.lhs.evaluate(c).number.plus(this.rhs.evaluate(c).number); } toString() { return '(' + this.lhs.toString() + ' + ' + this.rhs.toString() + ')'; } } exports.PlusOperation = PlusOperation; //# sourceMappingURL=plus-operation.js.map