@abaplint/core 2.85.46 → 2.85.47

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.46";
71
+ return "2.85.47";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -710,7 +710,7 @@ ${indentation}RAISE EXCEPTION ${uniqueName2}.`;
710
710
  const start = high.getFirstToken().getStart();
711
711
  const end = high.getLastToken().getStart();
712
712
  const fix = edit_helper_1.EditHelper.replaceRange(lowFile, start, end, code);
713
- return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Downport, Reduce statement", this.getMetadata().key, this.conf.severity, fix);
713
+ return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Downport, simple move", this.getMetadata().key, this.conf.severity, fix);
714
714
  }
715
715
  moveWithTableTarget(node, high, lowFile, highSyntax) {
716
716
  if (!(high.get() instanceof Statements.Move)) {
@@ -741,7 +741,7 @@ ${indentation}ENDIF.
741
741
  const start = target.getFirstToken().getStart();
742
742
  const end = target.getLastToken().getEnd();
743
743
  const fix = edit_helper_1.EditHelper.replaceRange(lowFile, start, end, code);
744
- return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Downport, Reduce statement", this.getMetadata().key, this.conf.severity, fix);
744
+ return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Downport, move with table target", this.getMetadata().key, this.conf.severity, fix);
745
745
  }
746
746
  moveWithOperator(high, lowFile) {
747
747
  var _a, _b, _c;
@@ -896,8 +896,8 @@ ${indentation} output = ${topTarget}.`;
896
896
  const cond = forLoop.findFirstExpression(Expressions.Cond);
897
897
  body += indentation + `WHILE NOT ${cond === null || cond === void 0 ? void 0 : cond.concatTokens()}.\n`;
898
898
  const field = (_e = (_d = forLoop.findDirectExpression(Expressions.InlineFieldDefinition)) === null || _d === void 0 ? void 0 : _d.findFirstExpression(Expressions.Field)) === null || _e === void 0 ? void 0 : _e.concatTokens();
899
- body += indentation + ` ${field} = ${field} + 1.\n`;
900
- end = "ENDWHILE";
899
+ end += ` ${field} = ${field} + 1.\n`;
900
+ end += indentation + "ENDWHILE";
901
901
  }
902
902
  else if (forLoop.findDirectTokenByText("WHILE")) {
903
903
  const name = (_f = forLoop.findFirstExpression(Expressions.Field)) === null || _f === void 0 ? void 0 : _f.concatTokens();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.46",
3
+ "version": "2.85.47",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",