@abaplint/runtime 2.4.17 → 2.4.19
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 +14 -4
- package/package.json +1 -1
package/build/src/compare/in.js
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
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
|
+
if ((0, eq_1.eq)(row.get()["low"], left)) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else if ((0, eq_1.eq)(row.get()["sign"], "I") && (0, eq_1.eq)(row.get()["option"], "CP")) {
|
|
17
|
+
if ((0, cp_1.cp)(left, row.get()["low"])) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
console.dir(row);
|
|
23
|
+
throw "compareIn todo";
|
|
14
24
|
}
|
|
15
25
|
}
|
|
16
26
|
return false;
|