@abaplint/core 2.93.82 → 2.93.84

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.
@@ -31,7 +31,6 @@ class Loop {
31
31
  throw new Error("No source type determined");
32
32
  }
33
33
  else if (sourceType instanceof basic_1.UnknownType) {
34
- console.dir(sourceType);
35
34
  throw new Error("Loop, not a table type, " + sourceType.getError());
36
35
  }
37
36
  else if (sourceType instanceof basic_1.TableType
@@ -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.84";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
@@ -1011,7 +1011,6 @@ ${indentation}RAISE EXCEPTION ${uniqueName2}.`;
1011
1011
  }
1012
1012
  const target = high.findDirectExpression(Expressions.Target);
1013
1013
  if (target === undefined) {
1014
- console.dir("sdf1");
1015
1014
  return undefined;
1016
1015
  }
1017
1016
  const sourceRef = (_a = high.findFirstExpression(Expressions.Source)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(Expressions.CorrespondingBody);
@@ -1803,7 +1802,6 @@ ${indentation} output = ${topTarget}.`;
1803
1802
  if (firstName === "") {
1804
1803
  firstName = name;
1805
1804
  }
1806
- // TODO TODO TODO, WORK IN PROGRESS
1807
1805
  const spag = highSyntax.spaghetti.lookupPosition(init.getFirstToken().getStart(), lowFile.getFilename());
1808
1806
  if (spag && new SpagHelper(spag).isDuplicateName(name, init.getFirstToken().getStart())) {
1809
1807
  this.renameVariable(spag, name, init.getFirstToken().getStart(), lowFile, highSyntax);
@@ -1847,8 +1845,9 @@ ${indentation} output = ${topTarget}.`;
1847
1845
  const abap = `DATA ${uniqueName} TYPE ${type}.\n` +
1848
1846
  body +
1849
1847
  indentation;
1848
+ const reduceEnd = i.findDirectTokenByText(")");
1850
1849
  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);
1850
+ const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, firstToken.getStart(), reduceEnd.getEnd(), uniqueName);
1852
1851
  const fix = edit_helper_1.EditHelper.merge(fix2, fix1);
1853
1852
  return issue_1.Issue.atToken(lowFile, firstToken, "Downport REDUCE", this.getMetadata().key, this.conf.severity, fix);
1854
1853
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.93.82",
3
+ "version": "2.93.84",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",