@abaplint/core 2.85.47 → 2.85.48

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.85.47";
71
+ return "2.85.48";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -733,7 +733,7 @@ ${indentation}RAISE EXCEPTION ${uniqueName2}.`;
733
733
  const tName = target.concatTokens().split("[")[0];
734
734
  const indentation = " ".repeat(high.getFirstToken().getStart().getCol() - 1);
735
735
  const code = `FIELD-SYMBOLS ${uniqueName} LIKE LINE OF ${tName}.
736
- ${indentation}READ TABLE ${tName} INDEX ${index === null || index === void 0 ? void 0 : index.concatTokens()} ASSIGNING <temp1>.
736
+ ${indentation}READ TABLE ${tName} INDEX ${index === null || index === void 0 ? void 0 : index.concatTokens()} ASSIGNING ${uniqueName}.
737
737
  ${indentation}IF sy-subrc <> 0.
738
738
  ${indentation} RAISE EXCEPTION TYPE cx_sy_itab_line_not_found.
739
739
  ${indentation}ENDIF.
@@ -905,8 +905,8 @@ ${indentation} output = ${topTarget}.`;
905
905
  const cond = forLoop.findFirstExpression(Expressions.Cond);
906
906
  body += indentation + `WHILE ${cond === null || cond === void 0 ? void 0 : cond.concatTokens()}.\n`;
907
907
  const field = (_h = (_g = forLoop.findDirectExpression(Expressions.InlineFieldDefinition)) === null || _g === void 0 ? void 0 : _g.findFirstExpression(Expressions.Field)) === null || _h === void 0 ? void 0 : _h.concatTokens();
908
- body += indentation + ` ${field} = ${field} + 1.\n`;
909
- end = "ENDWHILE";
908
+ end += ` ${field} = ${field} + 1.\n`;
909
+ end += indentation + "ENDWHILE";
910
910
  }
911
911
  else if (loopTargetField) {
912
912
  body += indentation + `LOOP AT ${loopSource} INTO DATA(${loopTargetField}).\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.47",
3
+ "version": "2.85.48",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -48,7 +48,7 @@
48
48
  "@microsoft/api-extractor": "^7.19.5",
49
49
  "@types/chai": "^4.3.0",
50
50
  "@types/mocha": "^9.1.0",
51
- "@types/node": "^17.0.22",
51
+ "@types/node": "^17.0.23",
52
52
  "chai": "^4.3.6",
53
53
  "eslint": "^8.11.0",
54
54
  "mocha": "^9.2.2",