@abaplint/core 2.95.30 → 2.95.31

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.
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.95.30";
66
+ return "2.95.31";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
@@ -2216,9 +2216,10 @@ ${indentation} output = ${topTarget}.`;
2216
2216
  }
2217
2217
  const indent = " ".repeat(high.getFirstToken().getStart().getCol() - 1);
2218
2218
  const bodyCode = this.buildCondBody(body, uniqueName, indent, lowFile, highSyntax);
2219
+ const last = i.findDirectTokenByText(")");
2219
2220
  const abap = `DATA ${uniqueName} ${type}.\n` + bodyCode;
2220
2221
  const fix1 = edit_helper_1.EditHelper.insertAt(lowFile, high.getFirstToken().getStart(), abap);
2221
- const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, i.getFirstToken().getStart(), i.getLastToken().getEnd(), uniqueName);
2222
+ const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, i.getFirstToken().getStart(), last.getEnd(), uniqueName);
2222
2223
  const fix = edit_helper_1.EditHelper.merge(fix2, fix1);
2223
2224
  return issue_1.Issue.atToken(lowFile, i.getFirstToken(), "Downport COND", this.getMetadata().key, this.conf.severity, fix);
2224
2225
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.95.30",
3
+ "version": "2.95.31",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",