@abaplint/core 2.93.82 → 2.93.83

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.93.82";
66
+ return "2.93.83";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
@@ -1803,7 +1803,6 @@ ${indentation} output = ${topTarget}.`;
1803
1803
  if (firstName === "") {
1804
1804
  firstName = name;
1805
1805
  }
1806
- // TODO TODO TODO, WORK IN PROGRESS
1807
1806
  const spag = highSyntax.spaghetti.lookupPosition(init.getFirstToken().getStart(), lowFile.getFilename());
1808
1807
  if (spag && new SpagHelper(spag).isDuplicateName(name, init.getFirstToken().getStart())) {
1809
1808
  this.renameVariable(spag, name, init.getFirstToken().getStart(), lowFile, highSyntax);
@@ -1847,8 +1846,9 @@ ${indentation} output = ${topTarget}.`;
1847
1846
  const abap = `DATA ${uniqueName} TYPE ${type}.\n` +
1848
1847
  body +
1849
1848
  indentation;
1849
+ const reduceEnd = i.findDirectTokenByText(")");
1850
1850
  const fix1 = edit_helper_1.EditHelper.insertAt(lowFile, high.getFirstToken().getStart(), abap);
1851
- const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, firstToken.getStart(), i.getLastToken().getEnd(), uniqueName);
1851
+ const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, firstToken.getStart(), reduceEnd.getEnd(), uniqueName);
1852
1852
  const fix = edit_helper_1.EditHelper.merge(fix2, fix1);
1853
1853
  return issue_1.Issue.atToken(lowFile, firstToken, "Downport REDUCE", this.getMetadata().key, this.conf.severity, fix);
1854
1854
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.93.82",
3
+ "version": "2.93.83",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",