@abaplint/runtime 2.0.55 → 2.0.58
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.
|
@@ -2,8 +2,8 @@ import { FieldSymbol, Table, TableRowType } from "../types";
|
|
|
2
2
|
import { ICharacter } from "../types/_character";
|
|
3
3
|
import { INumeric } from "../types/_numeric";
|
|
4
4
|
export interface IAppendOptions {
|
|
5
|
-
source: TableRowType;
|
|
6
|
-
target: Table;
|
|
5
|
+
source: TableRowType | FieldSymbol;
|
|
6
|
+
target: Table | FieldSymbol | undefined;
|
|
7
7
|
lines?: boolean;
|
|
8
8
|
assigning?: FieldSymbol;
|
|
9
9
|
from?: ICharacter | INumeric;
|
|
@@ -3,6 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.append = void 0;
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
function append(input) {
|
|
6
|
+
if (input.target instanceof types_1.FieldSymbol) {
|
|
7
|
+
input.target = input.target.getPointer();
|
|
8
|
+
}
|
|
9
|
+
if (input.target === undefined) {
|
|
10
|
+
throw "Field symbol not assigned";
|
|
11
|
+
}
|
|
12
|
+
if (input.source instanceof types_1.FieldSymbol) {
|
|
13
|
+
input.source = input.source.getPointer();
|
|
14
|
+
}
|
|
6
15
|
if (input.lines === true && input.source instanceof types_1.Table) {
|
|
7
16
|
let from = 1;
|
|
8
17
|
if (input.from) {
|