@abaplint/core 2.88.3 → 2.88.4
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
|
@@ -499,13 +499,17 @@ ${indentation}${uniqueName} = ${source.concatTokens()}.\n${indentation}`);
|
|
|
499
499
|
}
|
|
500
500
|
const condition = this.tableCondition(tableExpression);
|
|
501
501
|
const uniqueName = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
|
502
|
+
const tabixBackup = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
|
502
503
|
const indentation = " ".repeat(node.getFirstToken().getStart().getCol() - 1);
|
|
503
504
|
const firstToken = node.getFirstToken();
|
|
504
505
|
const fix1 = edit_helper_1.EditHelper.insertAt(lowFile, firstToken.getStart(), `DATA ${uniqueName} LIKE LINE OF ${pre}.
|
|
506
|
+
${indentation}DATA ${tabixBackup} LIKE sy-tabix.
|
|
507
|
+
${indentation}${tabixBackup} = sy-tabix.
|
|
505
508
|
${indentation}READ TABLE ${pre} ${condition}INTO ${uniqueName}.
|
|
506
509
|
${indentation}IF sy-subrc <> 0.
|
|
507
510
|
${indentation} RAISE EXCEPTION TYPE cx_sy_itab_line_not_found.
|
|
508
511
|
${indentation}ENDIF.
|
|
512
|
+
${indentation}sy-tabix = ${tabixBackup}.
|
|
509
513
|
${indentation}`);
|
|
510
514
|
const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, startToken.getStart(), tableExpression.getLastToken().getEnd(), uniqueName);
|
|
511
515
|
const fix = edit_helper_1.EditHelper.merge(fix2, fix1);
|
|
@@ -754,12 +758,16 @@ ${indentation}RAISE EXCEPTION ${uniqueName2}.`;
|
|
|
754
758
|
uniqueName = `<${uniqueName}>`;
|
|
755
759
|
const tName = target.concatTokens().split("[")[0];
|
|
756
760
|
const condition = this.tableCondition(tableExpression);
|
|
761
|
+
const tabixBackup = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
|
757
762
|
const indentation = " ".repeat(high.getFirstToken().getStart().getCol() - 1);
|
|
758
763
|
const code = `FIELD-SYMBOLS ${uniqueName} LIKE LINE OF ${tName}.
|
|
764
|
+
${indentation}DATA ${tabixBackup} LIKE sy-tabix.
|
|
765
|
+
${indentation}${tabixBackup} = sy-tabix.
|
|
759
766
|
${indentation}READ TABLE ${tName} ${condition}ASSIGNING ${uniqueName}.
|
|
760
767
|
${indentation}IF sy-subrc <> 0.
|
|
761
768
|
${indentation} RAISE EXCEPTION TYPE cx_sy_itab_line_not_found.
|
|
762
769
|
${indentation}ENDIF.
|
|
770
|
+
${indentation}sy-tabix = ${tabixBackup}.
|
|
763
771
|
${indentation}${uniqueName}`;
|
|
764
772
|
const start = target.getFirstToken().getStart();
|
|
765
773
|
const end = (_a = tableExpression.findDirectTokenByText("]")) === null || _a === void 0 ? void 0 : _a.getEnd();
|