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