@abaplint/runtime 2.1.78 → 2.1.79
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,7 +4,13 @@ exports.templateFormatting = void 0;
|
|
|
4
4
|
const types_1 = require("./types");
|
|
5
5
|
function templateFormatting(source, options) {
|
|
6
6
|
let text = "";
|
|
7
|
-
if (source instanceof types_1.
|
|
7
|
+
if (source instanceof types_1.FieldSymbol && source.getPointer() === undefined) {
|
|
8
|
+
throw "GETWA_NOT_ASSIGNED";
|
|
9
|
+
}
|
|
10
|
+
else if (source instanceof types_1.Table) {
|
|
11
|
+
throw "STRG_ILLEGAL_DATA_TYPE";
|
|
12
|
+
}
|
|
13
|
+
else if (source instanceof types_1.Character) {
|
|
8
14
|
text = source.getTrimEnd();
|
|
9
15
|
}
|
|
10
16
|
else {
|