@abaplint/core 2.85.35 → 2.85.36
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.
package/build/src/registry.js
CHANGED
|
@@ -242,7 +242,6 @@ Only one transformation is applied to a statement at a time, so multiple steps m
|
|
|
242
242
|
if (found) {
|
|
243
243
|
return found;
|
|
244
244
|
}
|
|
245
|
-
// note: line_exists() must be replaced before this call
|
|
246
245
|
found = this.replaceTableExpression(high, lowFile, highSyntax);
|
|
247
246
|
if (found) {
|
|
248
247
|
return found;
|
|
@@ -450,6 +449,11 @@ ${indentation}${uniqueName} = ${source.concatTokens()}.\n${indentation}`);
|
|
|
450
449
|
if (tableExpression === undefined) {
|
|
451
450
|
continue;
|
|
452
451
|
}
|
|
452
|
+
const concat = node.concatTokens().toUpperCase();
|
|
453
|
+
if (concat.includes(" LINE_EXISTS( ") || concat.includes(" LINE_INDEX( ")) {
|
|
454
|
+
// note: line_exists() must be replaced before handling table expressions
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
453
457
|
let pre = "";
|
|
454
458
|
let startToken = undefined;
|
|
455
459
|
for (const child of fieldChain.getChildren()) {
|
|
@@ -1306,9 +1310,11 @@ ${indentation} output = ${topTarget}.`;
|
|
|
1306
1310
|
var _a, _b;
|
|
1307
1311
|
const spag = highSyntax.spaghetti.lookupPosition(node.getFirstToken().getStart(), lowFile.getFilename());
|
|
1308
1312
|
for (const r of (spag === null || spag === void 0 ? void 0 : spag.getData().references) || []) {
|
|
1313
|
+
if (r.referenceType !== _reference_1.ReferenceType.BuiltinMethodReference) {
|
|
1314
|
+
continue;
|
|
1315
|
+
}
|
|
1309
1316
|
const func = r.position.getName().toUpperCase();
|
|
1310
|
-
if (
|
|
1311
|
-
&& (func === "LINE_EXISTS" || func === "LINE_INDEX")) {
|
|
1317
|
+
if (func === "LINE_EXISTS" || func === "LINE_INDEX") {
|
|
1312
1318
|
const token = r.position.getToken();
|
|
1313
1319
|
const expression = this.findMethodCallExpression(node, token);
|
|
1314
1320
|
if (expression === undefined) {
|