@abaplint/runtime 2.1.30 → 2.1.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.
|
@@ -13,6 +13,8 @@ function* loop(table, options) {
|
|
|
13
13
|
}
|
|
14
14
|
const length = table.array().length;
|
|
15
15
|
if (length === 0) {
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
abap.builtin.sy.get().subrc.set(4);
|
|
16
18
|
return;
|
|
17
19
|
}
|
|
18
20
|
const loopFrom = (options === null || options === void 0 ? void 0 : options.from) && (options === null || options === void 0 ? void 0 : options.from.get()) > 0 ? options.from.get() - 1 : 0;
|
|
@@ -36,8 +38,8 @@ function* loop(table, options) {
|
|
|
36
38
|
}
|
|
37
39
|
// @ts-ignore
|
|
38
40
|
abap.builtin.sy.get().tabix.set(loopIndex.index + 1);
|
|
39
|
-
yield current;
|
|
40
41
|
entered = true;
|
|
42
|
+
yield current;
|
|
41
43
|
loopIndex.index++;
|
|
42
44
|
loopTo = (options === null || options === void 0 ? void 0 : options.to) && options.to.get() < array.length ? options.to.get() : array.length;
|
|
43
45
|
}
|
|
@@ -27,7 +27,9 @@ export declare class Table {
|
|
|
27
27
|
private readonly rowType;
|
|
28
28
|
private readonly loops;
|
|
29
29
|
private readonly options;
|
|
30
|
-
|
|
30
|
+
private readonly qualifiedName;
|
|
31
|
+
constructor(rowType: TableRowType, options?: ITableOptions, qualifiedName?: string);
|
|
32
|
+
getQualifiedName(): string | undefined;
|
|
31
33
|
getOptions(): ITableOptions | undefined;
|
|
32
34
|
startLoop(start?: number): LoopIndex;
|
|
33
35
|
unregisterLoop(loop: LoopIndex): void;
|
package/build/src/types/table.js
CHANGED
|
@@ -22,11 +22,15 @@ class LoopIndex {
|
|
|
22
22
|
}
|
|
23
23
|
exports.LoopIndex = LoopIndex;
|
|
24
24
|
class Table {
|
|
25
|
-
constructor(rowType, options) {
|
|
25
|
+
constructor(rowType, options, qualifiedName) {
|
|
26
26
|
this.value = [];
|
|
27
27
|
this.loops = new Set();
|
|
28
28
|
this.rowType = rowType;
|
|
29
29
|
this.options = options;
|
|
30
|
+
this.qualifiedName = qualifiedName === null || qualifiedName === void 0 ? void 0 : qualifiedName.toUpperCase();
|
|
31
|
+
}
|
|
32
|
+
getQualifiedName() {
|
|
33
|
+
return this.qualifiedName;
|
|
30
34
|
}
|
|
31
35
|
getOptions() {
|
|
32
36
|
return this.options;
|