@abaplint/cli 2.113.98 → 2.113.100
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/cli.js +44 -10
- package/package.json +4 -4
package/build/cli.js
CHANGED
|
@@ -11609,6 +11609,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
11609
11609
|
exports.Convert = void 0;
|
|
11610
11610
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
11611
11611
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
11612
|
+
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
11612
11613
|
class Convert {
|
|
11613
11614
|
getMatcher() {
|
|
11614
11615
|
const intoTime = (0, combi_1.seq)("TIME", expressions_1.Target);
|
|
@@ -11620,10 +11621,12 @@ class Convert {
|
|
|
11620
11621
|
const dat = (0, combi_1.seq)("DATE", expressions_1.Source);
|
|
11621
11622
|
const tim = (0, combi_1.seq)("TIME", expressions_1.Source);
|
|
11622
11623
|
const stamp = (0, combi_1.seq)("INTO TIME STAMP", expressions_1.Target);
|
|
11624
|
+
const intoutc = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("INTO UTCLONG", expressions_1.Target));
|
|
11623
11625
|
const invert = (0, combi_1.seq)("INTO INVERTED-DATE", expressions_1.Target);
|
|
11624
|
-
const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(daylight, stamp, zone, invert));
|
|
11626
|
+
const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(daylight, stamp, zone, invert, intoutc));
|
|
11625
11627
|
const inv = (0, combi_1.seq)("INVERTED-DATE", expressions_1.Source, "INTO DATE", expressions_1.Target);
|
|
11626
|
-
|
|
11628
|
+
const utclong = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("UTCLONG", expressions_1.Source, (0, combi_1.per)(zone, into, daylight)));
|
|
11629
|
+
return (0, combi_1.seq)("CONVERT", (0, combi_1.alt)(time, date, inv, utclong));
|
|
11627
11630
|
}
|
|
11628
11631
|
}
|
|
11629
11632
|
exports.Convert = Convert;
|
|
@@ -13004,7 +13007,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
|
|
|
13004
13007
|
// todo, cloud, split?
|
|
13005
13008
|
class Export {
|
|
13006
13009
|
getMatcher() {
|
|
13007
|
-
const from = (0, combi_1.seq)("FROM", expressions_1.Source);
|
|
13010
|
+
const from = (0, combi_1.seq)((0, combi_1.altPrio)("FROM", "="), expressions_1.Source);
|
|
13008
13011
|
const client = (0, combi_1.seq)("CLIENT", expressions_1.Source);
|
|
13009
13012
|
const id = (0, combi_1.seq)("ID", expressions_1.Source);
|
|
13010
13013
|
const using = (0, combi_1.seq)("USING", expressions_1.Source);
|
|
@@ -13016,7 +13019,7 @@ class Export {
|
|
|
13016
13019
|
const database = (0, combi_1.seq)("DATABASE", cluster, (0, combi_1.per)(from, client, id, using));
|
|
13017
13020
|
const target = (0, combi_1.alt)(buffer, memory, database, table, shared);
|
|
13018
13021
|
const left = (0, combi_1.alt)(expressions_1.FieldSub, expressions_1.FieldSymbol);
|
|
13019
|
-
const source = (0, combi_1.alt)((0, combi_1.plus)((0, combi_1.altPrio)(
|
|
13022
|
+
const source = (0, combi_1.alt)((0, combi_1.plus)((0, combi_1.altPrio)((0, combi_1.seq)(left, from), left)), expressions_1.Dynamic, expressions_1.Constant);
|
|
13020
13023
|
const compression = (0, combi_1.seq)("COMPRESSION", (0, combi_1.alt)("ON", "OFF"));
|
|
13021
13024
|
const hint = (0, combi_1.seq)("CODE PAGE HINT", expressions_1.Source);
|
|
13022
13025
|
return (0, combi_1.seq)("EXPORT", source, "TO", target, (0, combi_1.opt)(compression), (0, combi_1.opt)(hint));
|
|
@@ -35933,6 +35936,7 @@ exports.DECLARATION_STUFF = [
|
|
|
35933
35936
|
Statements.Parameter,
|
|
35934
35937
|
Statements.SelectionScreen,
|
|
35935
35938
|
Statements.ConstantBegin,
|
|
35939
|
+
Statements.Define,
|
|
35936
35940
|
];
|
|
35937
35941
|
//# sourceMappingURL=selection_events.js.map
|
|
35938
35942
|
|
|
@@ -36189,6 +36193,13 @@ class StatementFlow {
|
|
|
36189
36193
|
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
36190
36194
|
graph.addEdge(name, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
36191
36195
|
}
|
|
36196
|
+
else if (type instanceof Structures.TestSeam) {
|
|
36197
|
+
const name = StatementFlow.buildName(n.getFirstStatement());
|
|
36198
|
+
const sub = this.traverseBody(this.findBody(n), context);
|
|
36199
|
+
graph.addEdge(current, name, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
36200
|
+
graph.addGraph(name, sub, flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
36201
|
+
graph.addEdge(sub.getEnd(), graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
36202
|
+
}
|
|
36192
36203
|
else if (type instanceof Structures.AtFirst
|
|
36193
36204
|
|| type instanceof Structures.AtLast
|
|
36194
36205
|
|| type instanceof Structures.At
|
|
@@ -36268,7 +36279,8 @@ class StatementFlow {
|
|
|
36268
36279
|
graph.addEdge(caseName, graph.getEnd(), flow_graph_1.FLOW_EDGE_TYPE.undefined);
|
|
36269
36280
|
}
|
|
36270
36281
|
}
|
|
36271
|
-
else if (type instanceof Structures.Define
|
|
36282
|
+
else if (type instanceof Structures.Define
|
|
36283
|
+
|| type instanceof Structures.TestInjection) {
|
|
36272
36284
|
// do nothing
|
|
36273
36285
|
}
|
|
36274
36286
|
else {
|
|
@@ -41159,7 +41171,7 @@ const cds_as_1 = __webpack_require__(/*! ./cds_as */ "./node_modules/@abaplint/c
|
|
|
41159
41171
|
const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_cast.js");
|
|
41160
41172
|
class CDSElement extends combi_1.Expression {
|
|
41161
41173
|
getRunnable() {
|
|
41162
|
-
return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSArithmetics, _1.CDSFunction, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)("(", _1.CDSCase, ")"), (0, combi_1.seq)(_1.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName), _1.CDSPrefixedName,
|
|
41174
|
+
return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSArithmetics, _1.CDSFunction, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)("(", _1.CDSCase, ")"), (0, combi_1.seq)(_1.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName), _1.CDSPrefixedName, _1.CDSInteger), (0, combi_1.opt)(cds_as_1.CDSAs));
|
|
41163
41175
|
}
|
|
41164
41176
|
}
|
|
41165
41177
|
exports.CDSElement = CDSElement;
|
|
@@ -41272,7 +41284,7 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
|
|
|
41272
41284
|
class CDSFunctionInput extends combi_1.Expression {
|
|
41273
41285
|
getRunnable() {
|
|
41274
41286
|
const qualified = (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters))));
|
|
41275
|
-
const input = (0, combi_1.altPrio)(_1.CDSCast, _1.CDSFunction, _1.CDSArithmetics, _1.CDSCase, _1.CDSString, qualified,
|
|
41287
|
+
const input = (0, combi_1.altPrio)(_1.CDSCast, _1.CDSFunction, _1.CDSArithmetics, _1.CDSCase, _1.CDSString, qualified, _1.CDSInteger);
|
|
41276
41288
|
return input;
|
|
41277
41289
|
}
|
|
41278
41290
|
}
|
|
@@ -41339,7 +41351,7 @@ exports.CDSInteger = void 0;
|
|
|
41339
41351
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
41340
41352
|
class CDSInteger extends combi_1.Expression {
|
|
41341
41353
|
getRunnable() {
|
|
41342
|
-
return (0, combi_1.regex)(/^\d+$/);
|
|
41354
|
+
return (0, combi_1.seq)((0, combi_1.opt)("-"), (0, combi_1.regex)(/^\d+$/));
|
|
41343
41355
|
}
|
|
41344
41356
|
}
|
|
41345
41357
|
exports.CDSInteger = CDSInteger;
|
|
@@ -41362,7 +41374,9 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
|
|
|
41362
41374
|
const cds_condition_1 = __webpack_require__(/*! ./cds_condition */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_condition.js");
|
|
41363
41375
|
class CDSJoin extends combi_1.Expression {
|
|
41364
41376
|
getRunnable() {
|
|
41365
|
-
|
|
41377
|
+
const cond = (0, combi_1.seq)(_1.CDSSource, "ON", cds_condition_1.CDSCondition);
|
|
41378
|
+
const foo = (0, combi_1.altPrio)((0, combi_1.seq)("(", cond, ")"), cond);
|
|
41379
|
+
return (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("LEFT OUTER TO ONE", "LEFT OUTER", "INNER")), "JOIN", foo);
|
|
41366
41380
|
}
|
|
41367
41381
|
}
|
|
41368
41382
|
exports.CDSJoin = CDSJoin;
|
|
@@ -53822,7 +53836,7 @@ class Registry {
|
|
|
53822
53836
|
}
|
|
53823
53837
|
static abaplintVersion() {
|
|
53824
53838
|
// magic, see build script "version.sh"
|
|
53825
|
-
return "2.113.
|
|
53839
|
+
return "2.113.100";
|
|
53826
53840
|
}
|
|
53827
53841
|
getDDICReferences() {
|
|
53828
53842
|
return this.ddicReferences;
|
|
@@ -77373,6 +77387,26 @@ class VirtualPosition extends position_1.Position {
|
|
|
77373
77387
|
const casted = p;
|
|
77374
77388
|
return super.equals(this) && this.vrow === casted.vrow && this.vcol === casted.vcol;
|
|
77375
77389
|
}
|
|
77390
|
+
isAfter(p) {
|
|
77391
|
+
if (p instanceof VirtualPosition) {
|
|
77392
|
+
if (this.getRow() > p.getRow()) {
|
|
77393
|
+
return true;
|
|
77394
|
+
}
|
|
77395
|
+
if (this.getRow() === p.getRow() && this.getCol() > p.getCol()) {
|
|
77396
|
+
return true;
|
|
77397
|
+
}
|
|
77398
|
+
if (this.getRow() === p.getRow() && this.getCol() === p.getCol() && this.vrow > p.vrow) {
|
|
77399
|
+
return true;
|
|
77400
|
+
}
|
|
77401
|
+
if (this.getRow() === p.getRow() && this.getCol() === p.getCol() && this.vrow === p.vrow && this.vcol > p.vcol) {
|
|
77402
|
+
return true;
|
|
77403
|
+
}
|
|
77404
|
+
return false;
|
|
77405
|
+
}
|
|
77406
|
+
else {
|
|
77407
|
+
return super.isAfter(p);
|
|
77408
|
+
}
|
|
77409
|
+
}
|
|
77376
77410
|
}
|
|
77377
77411
|
exports.VirtualPosition = VirtualPosition;
|
|
77378
77412
|
//# sourceMappingURL=virtual_position.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.100",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
41
|
+
"@abaplint/core": "^2.113.100",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.10",
|
|
46
|
-
"@types/node": "^22.
|
|
46
|
+
"@types/node": "^22.12.0",
|
|
47
47
|
"@types/progress": "^2.0.7",
|
|
48
48
|
"chai": "^4.5.0",
|
|
49
49
|
"chalk": "^5.4.1",
|
|
50
|
-
"eslint": "^9.
|
|
50
|
+
"eslint": "^9.19.0",
|
|
51
51
|
"glob": "^7.2.3",
|
|
52
52
|
"json5": "^2.2.3",
|
|
53
53
|
"memfs": "^4.17.0",
|