@abaplint/runtime 2.0.64 → 2.0.65
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.
|
@@ -4,10 +4,20 @@ exports.assign = void 0;
|
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
function assign(input) {
|
|
6
6
|
if (input.dynamicText) {
|
|
7
|
-
if (input.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
if (input.dynamicSource instanceof types_1.FieldSymbol) {
|
|
8
|
+
input.dynamicSource = input.dynamicSource.getPointer();
|
|
9
|
+
}
|
|
10
|
+
if (input.dynamicText.includes("->")) {
|
|
11
|
+
if (input.dynamicSource instanceof types_1.ABAPObject) {
|
|
12
|
+
const split = input.dynamicText.split("->");
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
input.dynamicSource = input.dynamicSource.get()[split[1].toLowerCase()];
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
abap.builtin.sy.get().subrc.set(4);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
11
21
|
}
|
|
12
22
|
if (input.dynamicSource) {
|
|
13
23
|
input.target.assign(input.dynamicSource);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.describe = void 0;
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
function describe(input) {
|
|
6
|
+
// console.dir(input);
|
|
6
7
|
if (input.type) {
|
|
7
8
|
if (input.field instanceof types_1.FieldSymbol) {
|
|
8
9
|
describe({ field: input.field.getPointer(), type: input.type, length: input.length, mode: input.mode });
|
|
@@ -19,7 +19,7 @@ export declare class FieldSymbol {
|
|
|
19
19
|
get(): any;
|
|
20
20
|
appendInitial(): import("./table").TableRowType | undefined;
|
|
21
21
|
array(): any;
|
|
22
|
-
set(value: any):
|
|
22
|
+
set(value: any): this;
|
|
23
23
|
getOffset(input: {
|
|
24
24
|
offset: number;
|
|
25
25
|
length: number;
|
|
@@ -66,7 +66,8 @@ class FieldSymbol {
|
|
|
66
66
|
}
|
|
67
67
|
set(value) {
|
|
68
68
|
var _a;
|
|
69
|
-
|
|
69
|
+
(_a = this.pointer) === null || _a === void 0 ? void 0 : _a.set(value);
|
|
70
|
+
return this;
|
|
70
71
|
}
|
|
71
72
|
getOffset(input) {
|
|
72
73
|
// Assuming we're interested in Strings here, for now...
|