@abaplint/core 2.119.53 → 2.119.54
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/abaplint.d.ts +5 -0
- package/build/src/abap/2_statements/expressions/_lob_handle_type.js +17 -0
- package/build/src/abap/2_statements/expressions/data_definition.js +2 -1
- package/build/src/abap/2_statements/expressions/form_param_type.js +2 -1
- package/build/src/abap/2_statements/expressions/index.js +1 -0
- package/build/src/abap/2_statements/expressions/method_def_changing.js +3 -1
- package/build/src/abap/2_statements/expressions/method_def_importing.js +3 -1
- package/build/src/abap/2_statements/expressions/type.js +3 -2
- package/build/src/abap/2_statements/expressions/type_simple_ref.js +13 -0
- package/build/src/abap/2_statements/expressions/type_table.js +1 -1
- package/build/src/abap/2_statements/statements/fieldsymbol.js +3 -1
- package/build/src/abap/2_statements/statements/type.js +4 -1
- package/build/src/abap/5_syntax/statements/get_permissions.js +59 -0
- package/build/src/abap/5_syntax/syntax.js +2 -0
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
package/build/abaplint.d.ts
CHANGED
|
@@ -2702,6 +2702,7 @@ declare namespace Expressions {
|
|
|
2702
2702
|
TypeStructure,
|
|
2703
2703
|
TypeTableKey,
|
|
2704
2704
|
TypeTable,
|
|
2705
|
+
TypeSimpleRef,
|
|
2705
2706
|
Type_2 as Type,
|
|
2706
2707
|
ValueBase,
|
|
2707
2708
|
ValueBodyLine,
|
|
@@ -8250,6 +8251,10 @@ declare class Types_2 implements IStructure {
|
|
|
8250
8251
|
getMatcher(): IStructureRunnable;
|
|
8251
8252
|
}
|
|
8252
8253
|
|
|
8254
|
+
declare class TypeSimpleRef extends Expression {
|
|
8255
|
+
getRunnable(): IStatementRunnable;
|
|
8256
|
+
}
|
|
8257
|
+
|
|
8253
8258
|
declare class TypeStructure extends Expression {
|
|
8254
8259
|
getRunnable(): IStatementRunnable;
|
|
8255
8260
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lobColumns = lobColumns;
|
|
4
|
+
exports.lobKind = lobKind;
|
|
5
|
+
exports.lobHandleType = lobHandleType;
|
|
6
|
+
const combi_1 = require("../combi");
|
|
7
|
+
const _1 = require(".");
|
|
8
|
+
function lobColumns() {
|
|
9
|
+
return (0, combi_1.altPrio)((0, combi_1.seq)("FOR", (0, combi_1.opt)("OTHER"), (0, combi_1.altPrio)("BLOB", "CLOB"), "COLUMNS"), (0, combi_1.seq)("FOR", "ALL", (0, combi_1.opt)("OTHER"), (0, combi_1.altPrio)("BLOB", "CLOB"), "COLUMNS"), (0, combi_1.seq)("FOR", "ALL", "COLUMNS"), (0, combi_1.seq)("FOR", "COLUMNS", (0, combi_1.plus)(_1.FieldChain)));
|
|
10
|
+
}
|
|
11
|
+
function lobKind() {
|
|
12
|
+
return (0, combi_1.altPrio)("LOCATOR", "READER", "WRITER", (0, combi_1.seq)("LOB", "HANDLE"));
|
|
13
|
+
}
|
|
14
|
+
function lobHandleType() {
|
|
15
|
+
return (0, combi_1.seq)("TYPE", _1.TypeName, (0, combi_1.opt)("READ-ONLY"), (0, combi_1.plus)((0, combi_1.seq)(lobKind(), lobColumns())));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=_lob_handle_type.js.map
|
|
@@ -37,12 +37,13 @@ exports.DataDefinition = void 0;
|
|
|
37
37
|
const combi_1 = require("../combi");
|
|
38
38
|
const Expressions = __importStar(require("."));
|
|
39
39
|
const version_1 = require("../../../version");
|
|
40
|
+
const _lob_handle_type_1 = require("./_lob_handle_type");
|
|
40
41
|
class DataDefinition extends combi_1.Expression {
|
|
41
42
|
getRunnable() {
|
|
42
43
|
const simple = (0, combi_1.opt)((0, combi_1.per)("READ-ONLY", Expressions.Type, Expressions.Length, Expressions.Decimals, Expressions.Value));
|
|
43
44
|
const table = (0, combi_1.seq)(Expressions.TypeTable, (0, combi_1.optPrio)("READ-ONLY"));
|
|
44
45
|
const boxed = (0, combi_1.ver)(version_1.Release.v702, "BOXED");
|
|
45
|
-
return (0, combi_1.seq)(Expressions.DefinitionName, (0, combi_1.optPrio)(Expressions.ConstantFieldLength), (0, combi_1.alt)(simple, table, Expressions.TypeStructure), (0, combi_1.optPrio)(boxed));
|
|
46
|
+
return (0, combi_1.seq)(Expressions.DefinitionName, (0, combi_1.optPrio)(Expressions.ConstantFieldLength), (0, combi_1.altPrio)((0, combi_1.ver)(version_1.Release.v731, (0, _lob_handle_type_1.lobHandleType)()), (0, combi_1.alt)(simple, table, Expressions.TypeStructure)), (0, combi_1.optPrio)(boxed));
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
exports.DataDefinition = DataDefinition;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FormParamType = void 0;
|
|
4
4
|
const combi_1 = require("../combi");
|
|
5
5
|
const _1 = require(".");
|
|
6
|
+
const version_1 = require("../../../version");
|
|
6
7
|
class FormParamType extends combi_1.Expression {
|
|
7
8
|
getRunnable() {
|
|
8
9
|
const def = (0, combi_1.seq)("DEFAULT", (0, combi_1.alt)(_1.Constant, _1.FieldChain));
|
|
@@ -10,7 +11,7 @@ class FormParamType extends combi_1.Expression {
|
|
|
10
11
|
const tabseq = (0, combi_1.seq)(table, (0, combi_1.optPrio)((0, combi_1.seq)("OF", _1.TypeName)));
|
|
11
12
|
const ret = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.alt)("REF TO", "LINE OF")), _1.TypeName, (0, combi_1.opt)(def));
|
|
12
13
|
const like = (0, combi_1.seq)("LIKE", (0, combi_1.optPrio)((0, combi_1.alt)("REF TO", "LINE OF")), _1.FieldChain);
|
|
13
|
-
return (0, combi_1.alt)((0, combi_1.seq)("TYPE", (0, combi_1.altPrio)(tabseq, ret)), like);
|
|
14
|
+
return (0, combi_1.alt)((0, combi_1.seq)("TYPE", (0, combi_1.altPrio)(tabseq, (0, combi_1.ver)(version_1.Release.v916, (0, combi_1.seq)("ANY", "STRUCTURE")), ret)), like);
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
exports.FormParamType = FormParamType;
|
|
@@ -279,6 +279,7 @@ __exportStar(require("./type_param"), exports);
|
|
|
279
279
|
__exportStar(require("./type_structure"), exports);
|
|
280
280
|
__exportStar(require("./type_table_key"), exports);
|
|
281
281
|
__exportStar(require("./type_table"), exports);
|
|
282
|
+
__exportStar(require("./type_simple_ref"), exports);
|
|
282
283
|
__exportStar(require("./type"), exports);
|
|
283
284
|
__exportStar(require("./value_base"), exports);
|
|
284
285
|
__exportStar(require("./value_body_line"), exports);
|
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MethodDefChanging = void 0;
|
|
4
4
|
const combi_1 = require("../combi");
|
|
5
5
|
const _1 = require(".");
|
|
6
|
+
const version_1 = require("../../../version");
|
|
6
7
|
class MethodDefChanging extends combi_1.Expression {
|
|
7
8
|
getRunnable() {
|
|
8
|
-
|
|
9
|
+
const anyStructureParam = (0, combi_1.ver)(version_1.Release.v916, (0, combi_1.seq)(_1.MethodParamName, "TYPE", "ANY", "STRUCTURE", (0, combi_1.optPrio)("OPTIONAL")));
|
|
10
|
+
return (0, combi_1.seq)("CHANGING", (0, combi_1.plus)((0, combi_1.altPrio)(anyStructureParam, _1.MethodParamOptional)));
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
13
|
exports.MethodDefChanging = MethodDefChanging;
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MethodDefImporting = void 0;
|
|
4
4
|
const combi_1 = require("../combi");
|
|
5
5
|
const _1 = require(".");
|
|
6
|
+
const version_1 = require("../../../version");
|
|
6
7
|
class MethodDefImporting extends combi_1.Expression {
|
|
7
8
|
getRunnable() {
|
|
8
9
|
const field = (0, combi_1.regex)(/^!?(\/\w+\/)?\w+$/);
|
|
9
|
-
|
|
10
|
+
const anyStructureParam = (0, combi_1.ver)(version_1.Release.v916, (0, combi_1.seq)(_1.MethodParamName, "TYPE", "ANY", "STRUCTURE", (0, combi_1.optPrio)("OPTIONAL")));
|
|
11
|
+
return (0, combi_1.seq)("IMPORTING", (0, combi_1.plus)((0, combi_1.altPrio)(anyStructureParam, _1.MethodParamOptional)), (0, combi_1.optPrio)((0, combi_1.seq)("PREFERRED PARAMETER", field)));
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
exports.MethodDefImporting = MethodDefImporting;
|
|
@@ -6,11 +6,12 @@ const _1 = require(".");
|
|
|
6
6
|
const version_1 = require("../../../version");
|
|
7
7
|
class Type extends combi_1.Expression {
|
|
8
8
|
getRunnable() {
|
|
9
|
-
const
|
|
9
|
+
const indicatorSpec = (0, combi_1.altPrio)((0, combi_1.ver)(version_1.Release.v784, "AS BITFIELD"), (0, combi_1.seq)("TYPE", _1.TypeName));
|
|
10
|
+
const indicators = (0, combi_1.seq)("WITH INDICATORS", _1.ComponentName, (0, combi_1.optPrio)(indicatorSpec));
|
|
10
11
|
const typeType = (0, combi_1.seq)(_1.TypeName, (0, combi_1.optPrio)(_1.Default));
|
|
11
12
|
const like = (0, combi_1.altPrio)((0, combi_1.seq)("LINE OF", _1.FieldChain), (0, combi_1.seq)("REF TO", _1.FieldChain), _1.FieldChain);
|
|
12
13
|
const type = (0, combi_1.altPrio)((0, combi_1.seq)("LINE OF", typeType), (0, combi_1.seq)("REF TO", typeType), (0, combi_1.seq)(typeType, (0, combi_1.optPrio)(_1.LOBHandle)));
|
|
13
|
-
const ret = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.seq)("LIKE", like), (0, combi_1.seq)("TYPE", type)), (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Release.
|
|
14
|
+
const ret = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.seq)("LIKE", like), (0, combi_1.seq)("TYPE", type)), (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Release.v781, indicators)));
|
|
14
15
|
return ret;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeSimpleRef = void 0;
|
|
4
|
+
const combi_1 = require("../combi");
|
|
5
|
+
const _1 = require(".");
|
|
6
|
+
class TypeSimpleRef extends combi_1.Expression {
|
|
7
|
+
getRunnable() {
|
|
8
|
+
const tableKind = (0, combi_1.seq)((0, combi_1.alt)("ANY", "STANDARD", "HASHED", "SORTED", "INDEX"), "TABLE");
|
|
9
|
+
return (0, combi_1.altPrio)((0, combi_1.seq)("LINE", "OF", _1.TypeName), (0, combi_1.seq)("REF", "TO", _1.TypeName), tableKind, (0, combi_1.seq)("ANY", "STRUCTURE"), _1.TypeName);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TypeSimpleRef = TypeSimpleRef;
|
|
13
|
+
//# sourceMappingURL=type_simple_ref.js.map
|
|
@@ -21,7 +21,7 @@ class TypeTable extends combi_1.Expression {
|
|
|
21
21
|
const typetable = (0, combi_1.alt)(generic, (0, combi_1.seq)(normal1, (0, combi_1.alt)((0, combi_1.opt)((0, combi_1.per)(header, initial, (0, combi_1.plusPrio)(type_table_key_1.TypeTableKey))), (0, combi_1.seq)((0, combi_1.plus)(type_table_key_1.TypeTableKey), (0, combi_1.optPrio)(initial))), (0, combi_1.optPrio)("VALUE IS INITIAL")));
|
|
22
22
|
const occurs = (0, combi_1.seq)("OCCURS", (0, combi_1.altPrio)(_1.Integer, field_chain_1.FieldChain));
|
|
23
23
|
const entity = (0, combi_1.alt)(_1.TypeName, _1.EntityAssociation);
|
|
24
|
-
const derivedTypes = (0, _derived_types_1.derivedTypesAlt)((0, combi_1.ver)(version_1.Release.v773, (0, combi_1.seq)("ACTION IMPORT", entity)), (0, combi_1.seq)("READ LINK", entity), (0, combi_1.seq)("EVENT", entity));
|
|
24
|
+
const derivedTypes = (0, _derived_types_1.derivedTypesAlt)((0, combi_1.ver)(version_1.Release.v773, (0, combi_1.seq)("ACTION IMPORT", entity)), (0, combi_1.ver)(version_1.Release.v774, (0, combi_1.seq)("READ LINK", entity)), (0, combi_1.ver)(version_1.Release.v787, (0, combi_1.seq)("EVENT", entity)));
|
|
25
25
|
const derived = (0, combi_1.ver)(version_1.Release.v770, (0, combi_1.seq)("TABLE FOR", derivedTypes, (0, combi_1.optPrio)("VALUE IS INITIAL")), { also: combi_1.AlsoIn.OpenABAP });
|
|
26
26
|
const oldType = (0, combi_1.seq)((0, combi_1.opt)("REF TO"), _1.TypeName, (0, combi_1.alt)((0, combi_1.seq)(occurs, (0, combi_1.opt)(header)), header));
|
|
27
27
|
const oldLike = (0, combi_1.seq)((0, combi_1.opt)("REF TO"), field_chain_1.FieldChain, (0, combi_1.alt)((0, combi_1.seq)(occurs, (0, combi_1.opt)(header)), header));
|
|
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FieldSymbol = void 0;
|
|
4
4
|
const combi_1 = require("../combi");
|
|
5
5
|
const expressions_1 = require("../expressions");
|
|
6
|
+
const version_1 = require("../../../version");
|
|
6
7
|
class FieldSymbol {
|
|
7
8
|
getMatcher() {
|
|
8
9
|
const stru = (0, combi_1.seq)("STRUCTURE", expressions_1.TypeName, "DEFAULT", expressions_1.Field);
|
|
9
|
-
|
|
10
|
+
const anyStructure = (0, combi_1.ver)(version_1.Release.v916, (0, combi_1.seq)("TYPE", "ANY", "STRUCTURE"));
|
|
11
|
+
return (0, combi_1.seq)("FIELD-SYMBOLS", expressions_1.FieldSymbol, (0, combi_1.opt)((0, combi_1.alt)(anyStructure, expressions_1.Type, expressions_1.TypeTable, stru)));
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
exports.FieldSymbol = FieldSymbol;
|
|
@@ -37,10 +37,13 @@ exports.Type = void 0;
|
|
|
37
37
|
const combi_1 = require("../combi");
|
|
38
38
|
const Expressions = __importStar(require("../expressions"));
|
|
39
39
|
const version_1 = require("../../../version");
|
|
40
|
+
const _lob_handle_type_1 = require("../expressions/_lob_handle_type");
|
|
40
41
|
class Type {
|
|
41
42
|
getMatcher() {
|
|
42
43
|
const simple = (0, combi_1.per)(Expressions.Type, Expressions.Decimals, Expressions.Length);
|
|
43
|
-
const
|
|
44
|
+
const clientSpecified = (0, combi_1.ver)(version_1.Release.v760, (0, combi_1.seq)("TYPE", Expressions.TypeName, "CLIENT", "SPECIFIED", Expressions.FieldChain, (0, combi_1.opt)((0, combi_1.plus)((0, combi_1.seq)((0, _lob_handle_type_1.lobKind)(), (0, _lob_handle_type_1.lobColumns)())))));
|
|
45
|
+
const anyStructure = (0, combi_1.ver)(version_1.Release.v916, (0, combi_1.seq)("TYPE", "ANY", "STRUCTURE", (0, combi_1.opt)((0, combi_1.seq)("CONTAINING", (0, combi_1.plus)((0, combi_1.seq)(Expressions.DefinitionName, "TYPE", Expressions.TypeSimpleRef))))));
|
|
46
|
+
const def = (0, combi_1.seq)(Expressions.NamespaceSimpleName, (0, combi_1.opt)(Expressions.ConstantFieldLength), (0, combi_1.opt)((0, combi_1.altPrio)((0, combi_1.ver)(version_1.Release.v731, (0, _lob_handle_type_1.lobHandleType)()), clientSpecified, anyStructure, (0, combi_1.alt)(simple, Expressions.TypeTable, Expressions.TypeStructure))));
|
|
44
47
|
// todo, BOXED is only allowed with structures inside structures?
|
|
45
48
|
const boxed = (0, combi_1.ver)(version_1.Release.v702, "BOXED");
|
|
46
49
|
const ret = (0, combi_1.seq)("TYPES", def, (0, combi_1.opt)(boxed));
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.GetPermissions = void 0;
|
|
37
|
+
const Expressions = __importStar(require("../../2_statements/expressions"));
|
|
38
|
+
const source_1 = require("../expressions/source");
|
|
39
|
+
const target_1 = require("../expressions/target");
|
|
40
|
+
const inline_data_1 = require("../expressions/inline_data");
|
|
41
|
+
const basic_1 = require("../../types/basic");
|
|
42
|
+
class GetPermissions {
|
|
43
|
+
runSyntax(node, input) {
|
|
44
|
+
for (const s of node.findDirectExpressions(Expressions.Source)) {
|
|
45
|
+
source_1.Source.runSyntax(s, input);
|
|
46
|
+
}
|
|
47
|
+
for (const t of node.findDirectExpressions(Expressions.Target)) {
|
|
48
|
+
const inline = t === null || t === void 0 ? void 0 : t.findDirectExpression(Expressions.InlineData);
|
|
49
|
+
if (inline) {
|
|
50
|
+
inline_data_1.InlineData.runSyntax(inline, input, basic_1.VoidType.get("GetPermissions"));
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
target_1.Target.runSyntax(t, input);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.GetPermissions = GetPermissions;
|
|
59
|
+
//# sourceMappingURL=get_permissions.js.map
|
|
@@ -183,6 +183,7 @@ const insert_field_group_1 = require("./statements/insert_field_group");
|
|
|
183
183
|
const read_entities_1 = require("./statements/read_entities");
|
|
184
184
|
const modify_entities_1 = require("./statements/modify_entities");
|
|
185
185
|
const commit_entities_1 = require("./statements/commit_entities");
|
|
186
|
+
const get_permissions_1 = require("./statements/get_permissions");
|
|
186
187
|
const read_dataset_1 = require("./statements/read_dataset");
|
|
187
188
|
const _syntax_input_1 = require("./_syntax_input");
|
|
188
189
|
const assert_error_1 = require("./assert_error");
|
|
@@ -312,6 +313,7 @@ if (Object.keys(map).length === 0) {
|
|
|
312
313
|
addToMap(new parameter_1.Parameter());
|
|
313
314
|
addToMap(new fieldsymbol_1.FieldSymbol());
|
|
314
315
|
addToMap(new read_entities_1.ReadEntities());
|
|
316
|
+
addToMap(new get_permissions_1.GetPermissions());
|
|
315
317
|
addToMap(new read_dataset_1.ReadDataset());
|
|
316
318
|
addToMap(new modify_entities_1.ModifyEntities());
|
|
317
319
|
addToMap(new commit_entities_1.CommitEntities());
|
package/build/src/registry.js
CHANGED