@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)));
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.85.37";
71
+ return "2.85.38";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -1166,8 +1166,10 @@ ${indentation} output = ${topTarget}.`;
1166
1166
  continue;
1167
1167
  }
1168
1168
  const found = spag.findVariable(name);
1169
- if (found === undefined
1170
- || found.getType() instanceof basic_1.VoidType) {
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 === null || expression === void 0 ? void 0 : expression.findFirstExpression(Expressions.SourceField)) === null || _b === void 0 ? void 0 : _b.concatTokens();
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.37",
3
+ "version": "2.85.38",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",