@abaplint/runtime 2.11.25 → 2.11.27

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.
@@ -1,2 +1,2 @@
1
1
  import { ABAPObject, FieldSymbol } from "../types";
2
- export declare function cast(target: ABAPObject | FieldSymbol, source: ABAPObject): Promise<void>;
2
+ export declare function cast(target: ABAPObject | FieldSymbol, source: ABAPObject): Promise<FieldSymbol | ABAPObject | undefined>;
@@ -48,5 +48,6 @@ async function cast(target, source) {
48
48
  }
49
49
  }
50
50
  target.set(source);
51
+ return target;
51
52
  }
52
53
  //# sourceMappingURL=cast.js.map
@@ -1,2 +1,2 @@
1
1
  import { FieldSymbol, Structure } from "../types";
2
- export declare function moveCorresponding(source: Structure | FieldSymbol, target: Structure | FieldSymbol): void;
2
+ export declare function moveCorresponding(source: Structure | FieldSymbol, target: Structure | FieldSymbol): Structure;
@@ -7,15 +7,13 @@ function moveCorresponding(source, target) {
7
7
  if (source.isAssigned() === false) {
8
8
  throw new Error("GETWA_NOT_ASSIGNED");
9
9
  }
10
- moveCorresponding(source.getPointer(), target);
11
- return;
10
+ return moveCorresponding(source.getPointer(), target);
12
11
  }
13
12
  if (target instanceof types_1.FieldSymbol) {
14
13
  if (target.isAssigned() === false) {
15
14
  throw new Error("GETWA_NOT_ASSIGNED");
16
15
  }
17
- moveCorresponding(source, target.getPointer());
18
- return;
16
+ return moveCorresponding(source, target.getPointer());
19
17
  }
20
18
  for (const n in source.get()) {
21
19
  if (target.get()[n] instanceof types_1.Structure) {
@@ -25,5 +23,6 @@ function moveCorresponding(source, target) {
25
23
  target.get()[n]?.set(source.get()[n]);
26
24
  }
27
25
  }
26
+ return target;
28
27
  }
29
28
  //# sourceMappingURL=move_corresponding.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.11.25",
3
+ "version": "2.11.27",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",