@abaplint/runtime 2.3.24 → 2.3.26
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.
|
@@ -59,16 +59,25 @@ function describe(input) {
|
|
|
59
59
|
throw new Error("DESCRIBE, todo, transpiler, " + input.field.constructor.name);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
+
if (input.field instanceof types_1.FieldSymbol) {
|
|
63
|
+
input.field = input.field.getPointer();
|
|
64
|
+
}
|
|
62
65
|
if (input.length) {
|
|
63
|
-
if (input.field instanceof types_1.FieldSymbol) {
|
|
64
|
-
input.field = input.field.getPointer();
|
|
65
|
-
}
|
|
66
66
|
if (input.field instanceof types_1.Character
|
|
67
|
+
|| input.field instanceof types_1.Packed
|
|
67
68
|
|| input.field instanceof types_1.Hex) {
|
|
68
69
|
input.length.set(input.field.getLength());
|
|
69
70
|
}
|
|
70
71
|
else {
|
|
71
|
-
throw "DESCRIBE, unsupported or todo";
|
|
72
|
+
throw "DESCRIBE length, unsupported or todo";
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (input.decimals) {
|
|
76
|
+
if (input.field instanceof types_1.Packed) {
|
|
77
|
+
input.decimals.set(input.field.getDecimals());
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
throw "DESCRIBE decimals, unsupported or todo";
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
if (input.table) {
|