@abaplint/core 2.90.11 → 2.90.12

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.
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.90.11";
71
+ return "2.90.12";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -1252,14 +1252,6 @@ ${indentation} output = ${topTarget}.`;
1252
1252
  body += indentation + uniqueName + " = " + base.concatTokens() + ".\n";
1253
1253
  }
1254
1254
  let end = "";
1255
- /*
1256
- for (const forLoop of valueBody?.findDirectExpressions(Expressions.For) || []) {
1257
- const outlineFor = this.outlineFor(forLoop, indentation, lowFile, highSyntax);
1258
- body += outlineFor.body;
1259
- end = outlineFor.end + `.\n` + end;
1260
- indentation += " ";
1261
- }
1262
- */
1263
1255
  let structureName = uniqueName;
1264
1256
  let added = false;
1265
1257
  let skip = false;
@@ -1284,6 +1276,9 @@ ${indentation} output = ${topTarget}.`;
1284
1276
  indentation += " ";
1285
1277
  }
1286
1278
  else if (b.get() instanceof Expressions.Source) {
1279
+ if ((valueBody === null || valueBody === void 0 ? void 0 : valueBody.getChildren().length) === 1) {
1280
+ body += indentation + uniqueName + " = " + b.concatTokens() + `.\n`;
1281
+ }
1287
1282
  structureName = b.concatTokens();
1288
1283
  if (base && (valueBody === null || valueBody === void 0 ? void 0 : valueBody.findDirectTokenByText("(")) === undefined) {
1289
1284
  structureName = uniqueName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.90.11",
3
+ "version": "2.90.12",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",