@abaplint/runtime 2.5.31 → 2.5.33

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compareIn = void 0;
4
4
  const cp_1 = require("./cp");
5
5
  const eq_1 = require("./eq");
6
+ const ne_1 = require("./ne");
6
7
  function compareIn(left, right) {
7
8
  if (right.array().length === 0) {
8
9
  return true;
@@ -13,6 +14,11 @@ function compareIn(left, right) {
13
14
  return true;
14
15
  }
15
16
  }
17
+ else if ((0, eq_1.eq)(row.get()["sign"], "E") && (0, eq_1.eq)(row.get()["option"], "EQ")) {
18
+ if ((0, ne_1.ne)(row.get()["low"], left)) {
19
+ return true;
20
+ }
21
+ }
16
22
  else if ((0, eq_1.eq)(row.get()["sign"], "I") && (0, eq_1.eq)(row.get()["option"], "CP")) {
17
23
  if ((0, cp_1.cp)(left, row.get()["low"])) {
18
24
  return true;
@@ -20,7 +26,7 @@ function compareIn(left, right) {
20
26
  }
21
27
  else {
22
28
  console.dir(row);
23
- throw "compareIn todo";
29
+ throw new Error("compareIn todo");
24
30
  }
25
31
  }
26
32
  return false;
@@ -63,6 +63,7 @@ class DataReference {
63
63
  else {
64
64
  return (_a = this.pointer) === null || _a === void 0 ? void 0 : _a.set(value);
65
65
  }
66
+ return this;
66
67
  }
67
68
  getOffset(input) {
68
69
  if (input === null || input === void 0 ? void 0 : input.offset) {
@@ -9,7 +9,7 @@ export declare class Hex implements ICharacter {
9
9
  constructor(input?: {
10
10
  length?: number;
11
11
  });
12
- set(value: ICharacter | INumeric | string | number | Integer | Float): void;
12
+ set(value: ICharacter | INumeric | string | number | Integer | Float): this;
13
13
  getLength(): number;
14
14
  clear(): void;
15
15
  get(): string;
@@ -46,6 +46,7 @@ class Hex {
46
46
  this.value = this.value.padEnd(this.length * 2, "0");
47
47
  }
48
48
  this.value = this.value.toUpperCase();
49
+ return this;
49
50
  }
50
51
  getLength() {
51
52
  return this.length;
@@ -11,7 +11,7 @@ export declare class Packed implements INumeric {
11
11
  });
12
12
  getQualifiedName(): string | undefined;
13
13
  private round;
14
- set(value: INumeric | number | string): void;
14
+ set(value: INumeric | number | string): this;
15
15
  getLength(): number;
16
16
  getDecimals(): number;
17
17
  clear(): void;
@@ -35,6 +35,7 @@ class Packed {
35
35
  else {
36
36
  this.set(value.get());
37
37
  }
38
+ return this;
38
39
  }
39
40
  getLength() {
40
41
  return this.length;
@@ -8,7 +8,7 @@ export declare class XString implements ICharacter {
8
8
  qualifiedName?: string;
9
9
  });
10
10
  getQualifiedName(): string | undefined;
11
- set(value: ICharacter | INumeric | string | number): void;
11
+ set(value: ICharacter | INumeric | string | number): this;
12
12
  clear(): void;
13
13
  get(): string;
14
14
  getOffset(input: {
@@ -38,6 +38,7 @@ class XString {
38
38
  this.set(v);
39
39
  }
40
40
  }
41
+ return this;
41
42
  }
42
43
  clear() {
43
44
  this.value = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.5.31",
3
+ "version": "2.5.33",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",