@abaplint/core 2.85.37 → 2.85.38
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.
|
@@ -107,6 +107,9 @@ class StatementParser {
|
|
|
107
107
|
if (statement.get() instanceof _statement_1.Unknown
|
|
108
108
|
&& statement.concatTokens().toUpperCase().startsWith("CALL METHOD ") === false) {
|
|
109
109
|
for (const { first, second } of this.buildSplits(statement.getTokens())) {
|
|
110
|
+
if (second.length === 1) {
|
|
111
|
+
continue; // probably punctuation
|
|
112
|
+
}
|
|
110
113
|
const s = this.categorizeStatement(new nodes_1.StatementNode(new _statement_1.Unknown()).setChildren(this.tokensToNodes(second)));
|
|
111
114
|
if (!(s.get() instanceof _statement_1.Unknown)) {
|
|
112
115
|
result.push(new nodes_1.StatementNode(new _statement_1.Unknown()).setChildren(this.tokensToNodes(first)));
|
package/build/src/registry.js
CHANGED
|
@@ -1166,8 +1166,10 @@ ${indentation} output = ${topTarget}.`;
|
|
|
1166
1166
|
continue;
|
|
1167
1167
|
}
|
|
1168
1168
|
const found = spag.findVariable(name);
|
|
1169
|
-
if (found === undefined
|
|
1170
|
-
|
|
1169
|
+
if (found === undefined) {
|
|
1170
|
+
continue;
|
|
1171
|
+
}
|
|
1172
|
+
else if (found.getType() instanceof basic_1.VoidType && found.getType().getQualifiedName() === undefined) {
|
|
1171
1173
|
continue;
|
|
1172
1174
|
}
|
|
1173
1175
|
const type = found.getType().getQualifiedName() ? (_b = found.getType().getQualifiedName()) === null || _b === void 0 ? void 0 : _b.toLowerCase() : found.getType().toABAP();
|
|
@@ -1348,7 +1350,7 @@ ${indentation} output = ${topTarget}.`;
|
|
|
1348
1350
|
}
|
|
1349
1351
|
condition += c.concatTokens() + " ";
|
|
1350
1352
|
}
|
|
1351
|
-
const tableName = (_b = expression
|
|
1353
|
+
const tableName = (_b = expression.findFirstExpression(Expressions.Source)) === null || _b === void 0 ? void 0 : _b.concatTokens().split("[")[0];
|
|
1352
1354
|
const uniqueName = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
|
1353
1355
|
const indentation = " ".repeat(node.getFirstToken().getStart().getCol() - 1);
|
|
1354
1356
|
const sy = func === "LINE_EXISTS" ? "sy-subrc" : "sy-tabix";
|