@abaplint/core 2.85.46 → 2.85.47
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
|
@@ -710,7 +710,7 @@ ${indentation}RAISE EXCEPTION ${uniqueName2}.`;
|
|
|
710
710
|
const start = high.getFirstToken().getStart();
|
|
711
711
|
const end = high.getLastToken().getStart();
|
|
712
712
|
const fix = edit_helper_1.EditHelper.replaceRange(lowFile, start, end, code);
|
|
713
|
-
return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Downport,
|
|
713
|
+
return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Downport, simple move", this.getMetadata().key, this.conf.severity, fix);
|
|
714
714
|
}
|
|
715
715
|
moveWithTableTarget(node, high, lowFile, highSyntax) {
|
|
716
716
|
if (!(high.get() instanceof Statements.Move)) {
|
|
@@ -741,7 +741,7 @@ ${indentation}ENDIF.
|
|
|
741
741
|
const start = target.getFirstToken().getStart();
|
|
742
742
|
const end = target.getLastToken().getEnd();
|
|
743
743
|
const fix = edit_helper_1.EditHelper.replaceRange(lowFile, start, end, code);
|
|
744
|
-
return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Downport,
|
|
744
|
+
return issue_1.Issue.atToken(lowFile, high.getFirstToken(), "Downport, move with table target", this.getMetadata().key, this.conf.severity, fix);
|
|
745
745
|
}
|
|
746
746
|
moveWithOperator(high, lowFile) {
|
|
747
747
|
var _a, _b, _c;
|
|
@@ -896,8 +896,8 @@ ${indentation} output = ${topTarget}.`;
|
|
|
896
896
|
const cond = forLoop.findFirstExpression(Expressions.Cond);
|
|
897
897
|
body += indentation + `WHILE NOT ${cond === null || cond === void 0 ? void 0 : cond.concatTokens()}.\n`;
|
|
898
898
|
const field = (_e = (_d = forLoop.findDirectExpression(Expressions.InlineFieldDefinition)) === null || _d === void 0 ? void 0 : _d.findFirstExpression(Expressions.Field)) === null || _e === void 0 ? void 0 : _e.concatTokens();
|
|
899
|
-
|
|
900
|
-
end
|
|
899
|
+
end += ` ${field} = ${field} + 1.\n`;
|
|
900
|
+
end += indentation + "ENDWHILE";
|
|
901
901
|
}
|
|
902
902
|
else if (forLoop.findDirectTokenByText("WHILE")) {
|
|
903
903
|
const name = (_f = forLoop.findFirstExpression(Expressions.Field)) === null || _f === void 0 ? void 0 : _f.concatTokens();
|