@abaplint/core 2.113.146 → 2.113.148
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/abap/5_syntax/statements/close_cursor.js +14 -0
- package/build/src/abap/5_syntax/statements/fetch_next_cursor.js +14 -0
- package/build/src/abap/5_syntax/statements/open_cursor.js +14 -0
- package/build/src/abap/5_syntax/syntax.js +6 -0
- package/build/src/registry.js +1 -1
- package/build/src/rules/parser_missing_space.js +8 -3
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloseCursor = void 0;
|
|
4
|
+
const Expressions = require("../../2_statements/expressions");
|
|
5
|
+
const sql_source_1 = require("../expressions/sql_source");
|
|
6
|
+
class CloseCursor {
|
|
7
|
+
runSyntax(node, input) {
|
|
8
|
+
for (const t of node.findAllExpressions(Expressions.SQLSourceSimple)) {
|
|
9
|
+
sql_source_1.SQLSource.runSyntax(t, input);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.CloseCursor = CloseCursor;
|
|
14
|
+
//# sourceMappingURL=close_cursor.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FetchNextCursor = void 0;
|
|
4
|
+
const Expressions = require("../../2_statements/expressions");
|
|
5
|
+
const target_1 = require("../expressions/target");
|
|
6
|
+
class FetchNextCursor {
|
|
7
|
+
runSyntax(node, input) {
|
|
8
|
+
for (const t of node.findAllExpressions(Expressions.Target)) {
|
|
9
|
+
target_1.Target.runSyntax(t, input);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.FetchNextCursor = FetchNextCursor;
|
|
14
|
+
//# sourceMappingURL=fetch_next_cursor.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenCursor = void 0;
|
|
4
|
+
const Expressions = require("../../2_statements/expressions");
|
|
5
|
+
const target_1 = require("../expressions/target");
|
|
6
|
+
class OpenCursor {
|
|
7
|
+
runSyntax(node, input) {
|
|
8
|
+
for (const t of node.findAllExpressions(Expressions.Target)) {
|
|
9
|
+
target_1.Target.runSyntax(t, input);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.OpenCursor = OpenCursor;
|
|
14
|
+
//# sourceMappingURL=open_cursor.js.map
|
|
@@ -84,6 +84,9 @@ const get_reference_1 = require("./statements/get_reference");
|
|
|
84
84
|
const insert_database_1 = require("./statements/insert_database");
|
|
85
85
|
const delete_database_1 = require("./statements/delete_database");
|
|
86
86
|
const import_dynpro_1 = require("./statements/import_dynpro");
|
|
87
|
+
const open_cursor_1 = require("./statements/open_cursor");
|
|
88
|
+
const fetch_next_cursor_1 = require("./statements/fetch_next_cursor");
|
|
89
|
+
const close_cursor_1 = require("./statements/close_cursor");
|
|
87
90
|
const syntax_check_1 = require("./statements/syntax_check");
|
|
88
91
|
const import_1 = require("./statements/import");
|
|
89
92
|
const export_1 = require("./statements/export");
|
|
@@ -268,6 +271,9 @@ if (Object.keys(map).length === 0) {
|
|
|
268
271
|
addToMap(new modify_entities_1.ModifyEntities());
|
|
269
272
|
addToMap(new commit_entities_1.CommitEntities());
|
|
270
273
|
addToMap(new call_kernel_1.CallKernel());
|
|
274
|
+
addToMap(new open_cursor_1.OpenCursor());
|
|
275
|
+
addToMap(new fetch_next_cursor_1.FetchNextCursor());
|
|
276
|
+
addToMap(new close_cursor_1.CloseCursor());
|
|
271
277
|
addToMap(new search_1.Search());
|
|
272
278
|
addToMap(new translate_1.Translate());
|
|
273
279
|
addToMap(new modify_internal_1.ModifyInternal());
|
package/build/src/registry.js
CHANGED
|
@@ -217,15 +217,20 @@ This rule makes sure the spaces are consistently required across the language.`,
|
|
|
217
217
|
return undefined;
|
|
218
218
|
}
|
|
219
219
|
checkSource(cond) {
|
|
220
|
+
var _a, _b;
|
|
220
221
|
const children = cond.getAllTokens();
|
|
221
222
|
if (children.length < 2) {
|
|
222
223
|
return undefined;
|
|
223
224
|
}
|
|
224
225
|
if (children.length >= 4
|
|
225
226
|
&& children[0].getStr().toUpperCase() === "CONV") {
|
|
226
|
-
const
|
|
227
|
-
const
|
|
228
|
-
|
|
227
|
+
const directChildren = cond.getChildren();
|
|
228
|
+
const first = (_a = directChildren[2]) === null || _a === void 0 ? void 0 : _a.getLastToken();
|
|
229
|
+
const second = (_b = directChildren[3]) === null || _b === void 0 ? void 0 : _b.getFirstToken();
|
|
230
|
+
if (first
|
|
231
|
+
&& first.getStr() === "("
|
|
232
|
+
&& second
|
|
233
|
+
&& first.getRow() === second.getRow()
|
|
229
234
|
&& first.getCol() + 1 === second.getStart().getCol()) {
|
|
230
235
|
return second.getStart();
|
|
231
236
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.148",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@microsoft/api-extractor": "^7.52.8",
|
|
54
54
|
"@types/chai": "^4.3.20",
|
|
55
55
|
"@types/mocha": "^10.0.10",
|
|
56
|
-
"@types/node": "^24.0
|
|
56
|
+
"@types/node": "^24.1.0",
|
|
57
57
|
"chai": "^4.5.0",
|
|
58
58
|
"eslint": "^9.31.0",
|
|
59
59
|
"mocha": "^11.7.1",
|