@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.
package/build/src/registry.js
CHANGED
|
@@ -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(),
|
|
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
|
}
|