@abaplint/runtime 2.4.16 → 2.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/compare/in.js +10 -4
- package/package.json +1 -1
package/build/src/compare/in.js
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.compareIn = void 0;
|
|
4
|
+
const cp_1 = require("./cp");
|
|
4
5
|
const eq_1 = require("./eq");
|
|
5
6
|
function compareIn(left, right) {
|
|
6
7
|
if (right.array().length === 0) {
|
|
7
8
|
return true;
|
|
8
9
|
}
|
|
9
10
|
for (const row of right.array()) {
|
|
10
|
-
if ((0, eq_1.eq)(row.get()["sign"], "I")
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
if ((0, eq_1.eq)(row.get()["sign"], "I") && (0, eq_1.eq)(row.get()["option"], "EQ")) {
|
|
12
|
+
return (0, eq_1.eq)(row.get()["low"], left);
|
|
13
|
+
}
|
|
14
|
+
else if ((0, eq_1.eq)(row.get()["sign"], "I") && (0, eq_1.eq)(row.get()["option"], "CP")) {
|
|
15
|
+
return (0, cp_1.cp)(left, row.get()["low"]);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
console.dir(row);
|
|
19
|
+
throw "compareIn todo";
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
return false;
|