@abaplint/core 2.102.38 → 2.102.40
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/2_statements/statements/close_cursor.js +1 -1
- package/build/src/abap/2_statements/statements/fetch_next_cursor.js +2 -2
- package/build/src/abap/2_statements/statements/open_cursor.js +1 -1
- package/build/src/abap/5_syntax/_builtin.js +8 -2
- package/build/src/files/_abstract_file.js +6 -2
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const expressions_1 = require("../expressions");
|
|
|
6
6
|
const version_1 = require("../../../version");
|
|
7
7
|
class CloseCursor {
|
|
8
8
|
getMatcher() {
|
|
9
|
-
const ret = (0, combi_1.seq)("CLOSE CURSOR", expressions_1.
|
|
9
|
+
const ret = (0, combi_1.seq)("CLOSE CURSOR", expressions_1.SQLSourceSimple);
|
|
10
10
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -7,8 +7,8 @@ const version_1 = require("../../../version");
|
|
|
7
7
|
const sql_into_structure_1 = require("../expressions/sql_into_structure");
|
|
8
8
|
class FetchNextCursor {
|
|
9
9
|
getMatcher() {
|
|
10
|
-
const size = (0, combi_1.seq)("PACKAGE SIZE", expressions_1.
|
|
11
|
-
const ret = (0, combi_1.seq)("FETCH NEXT CURSOR", expressions_1.
|
|
10
|
+
const size = (0, combi_1.seq)("PACKAGE SIZE", expressions_1.SQLSourceSimple);
|
|
11
|
+
const ret = (0, combi_1.seq)("FETCH NEXT CURSOR", expressions_1.SQLSourceSimple, (0, combi_1.alt)(sql_into_structure_1.SQLIntoStructure, expressions_1.SQLIntoTable), (0, combi_1.optPrio)(size));
|
|
12
12
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -6,7 +6,7 @@ const expressions_1 = require("../expressions");
|
|
|
6
6
|
const version_1 = require("../../../version");
|
|
7
7
|
class OpenCursor {
|
|
8
8
|
getMatcher() {
|
|
9
|
-
const ret = (0, combi_1.seq)("OPEN CURSOR", (0, combi_1.optPrio)("WITH HOLD"), expressions_1.SQLTarget, "FOR", expressions_1.Select, (0, combi_1.optPrio)(expressions_1.SQLHints));
|
|
9
|
+
const ret = (0, combi_1.seq)("OPEN CURSOR", (0, combi_1.optPrio)("WITH HOLD"), expressions_1.SQLTarget, "FOR", expressions_1.Select, (0, combi_1.optPrio)(expressions_1.DatabaseConnection), (0, combi_1.optPrio)(expressions_1.SQLHints));
|
|
10
10
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -122,8 +122,14 @@ class BuiltIn {
|
|
|
122
122
|
}
|
|
123
123
|
getTypes() {
|
|
124
124
|
const ret = this.buildSY();
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
{
|
|
126
|
+
const id = new tokens_1.Identifier(new position_1.Position(1, 1), "abap_bool");
|
|
127
|
+
ret.push(new _typed_identifier_1.TypedIdentifier(id, BuiltIn.filename, new basic_1.CharacterType(1, { qualifiedName: "ABAP_BOOL", ddicName: "ABAP_BOOL" })));
|
|
128
|
+
}
|
|
129
|
+
{
|
|
130
|
+
const id = new tokens_1.Identifier(new position_1.Position(1, 1), "cursor");
|
|
131
|
+
ret.push(new _typed_identifier_1.TypedIdentifier(id, BuiltIn.filename, basic_1.IntegerType.get({ qualifiedName: "CURSOR", ddicName: "CURSOR" })));
|
|
132
|
+
}
|
|
127
133
|
return ret;
|
|
128
134
|
}
|
|
129
135
|
get(extras) {
|
|
@@ -26,8 +26,12 @@ class AbstractFile {
|
|
|
26
26
|
// handle additional escaping
|
|
27
27
|
split[0] = split[0].replace(/%3e/g, ">");
|
|
28
28
|
split[0] = split[0].replace(/%3c/g, "<");
|
|
29
|
-
// handle namespace
|
|
30
|
-
|
|
29
|
+
// handle abapGit namespace
|
|
30
|
+
split[0] = split[0].toUpperCase().replace(/#/g, "/");
|
|
31
|
+
// handle AFF namespace
|
|
32
|
+
split[0] = split[0].replace("(", "/");
|
|
33
|
+
split[0] = split[0].replace(")", "/");
|
|
34
|
+
return split[0];
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
exports.AbstractFile = AbstractFile;
|
package/build/src/registry.js
CHANGED