@abaplint/core 2.88.8 → 2.88.9
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
|
@@ -502,14 +502,15 @@ ${indentation}${uniqueName} = ${source.concatTokens()}.\n${indentation}`);
|
|
|
502
502
|
const tabixBackup = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
|
503
503
|
const indentation = " ".repeat(node.getFirstToken().getStart().getCol() - 1);
|
|
504
504
|
const firstToken = node.getFirstToken();
|
|
505
|
+
// note that the tabix restore should be done before throwing the exception
|
|
505
506
|
const fix1 = edit_helper_1.EditHelper.insertAt(lowFile, firstToken.getStart(), `DATA ${uniqueName} LIKE LINE OF ${pre}.
|
|
506
507
|
${indentation}DATA ${tabixBackup} LIKE sy-tabix.
|
|
507
508
|
${indentation}${tabixBackup} = sy-tabix.
|
|
508
509
|
${indentation}READ TABLE ${pre} ${condition}INTO ${uniqueName}.
|
|
510
|
+
${indentation}sy-tabix = ${tabixBackup}.
|
|
509
511
|
${indentation}IF sy-subrc <> 0.
|
|
510
512
|
${indentation} RAISE EXCEPTION TYPE cx_sy_itab_line_not_found.
|
|
511
513
|
${indentation}ENDIF.
|
|
512
|
-
${indentation}sy-tabix = ${tabixBackup}.
|
|
513
514
|
${indentation}`);
|
|
514
515
|
const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, startToken.getStart(), tableExpression.getLastToken().getEnd(), uniqueName);
|
|
515
516
|
const fix = edit_helper_1.EditHelper.merge(fix2, fix1);
|
|
@@ -760,14 +761,15 @@ ${indentation}RAISE EXCEPTION ${uniqueName2}.`;
|
|
|
760
761
|
const condition = this.tableCondition(tableExpression);
|
|
761
762
|
const tabixBackup = this.uniqueName(node.getFirstToken().getStart(), lowFile.getFilename(), highSyntax);
|
|
762
763
|
const indentation = " ".repeat(high.getFirstToken().getStart().getCol() - 1);
|
|
764
|
+
// restore tabix before exeption
|
|
763
765
|
const code = `FIELD-SYMBOLS ${uniqueName} LIKE LINE OF ${tName}.
|
|
764
766
|
${indentation}DATA ${tabixBackup} LIKE sy-tabix.
|
|
765
767
|
${indentation}${tabixBackup} = sy-tabix.
|
|
766
768
|
${indentation}READ TABLE ${tName} ${condition}ASSIGNING ${uniqueName}.
|
|
769
|
+
${indentation}sy-tabix = ${tabixBackup}.
|
|
767
770
|
${indentation}IF sy-subrc <> 0.
|
|
768
771
|
${indentation} RAISE EXCEPTION TYPE cx_sy_itab_line_not_found.
|
|
769
772
|
${indentation}ENDIF.
|
|
770
|
-
${indentation}sy-tabix = ${tabixBackup}.
|
|
771
773
|
${indentation}${uniqueName}`;
|
|
772
774
|
const start = target.getFirstToken().getStart();
|
|
773
775
|
const end = (_a = tableExpression.findDirectTokenByText("]")) === null || _a === void 0 ? void 0 : _a.getEnd();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.88.
|
|
3
|
+
"version": "2.88.9",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://abaplint.org",
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@microsoft/api-extractor": "^7.22.
|
|
49
|
-
"@types/chai": "^4.3.
|
|
48
|
+
"@microsoft/api-extractor": "^7.22.2",
|
|
49
|
+
"@types/chai": "^4.3.1",
|
|
50
50
|
"@types/mocha": "^9.1.0",
|
|
51
|
-
"@types/node": "^17.0.
|
|
51
|
+
"@types/node": "^17.0.24",
|
|
52
52
|
"chai": "^4.3.6",
|
|
53
53
|
"eslint": "^8.13.0",
|
|
54
54
|
"mocha": "^9.2.2",
|