@abaplint/cli 2.113.1 → 2.113.3
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 +68 -28
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -35259,7 +35259,9 @@ class StatementFlow {
|
|
|
35259
35259
|
var _a, _b, _c, _d;
|
|
35260
35260
|
const ret = [];
|
|
35261
35261
|
let name = "";
|
|
35262
|
-
const structures = stru.findAllStructuresMulti([
|
|
35262
|
+
const structures = stru.findAllStructuresMulti([
|
|
35263
|
+
Structures.Form, Structures.ClassImplementation, Structures.FunctionModule, Structures.Module
|
|
35264
|
+
]);
|
|
35263
35265
|
for (const s of structures) {
|
|
35264
35266
|
if (s.get() instanceof Structures.Form) {
|
|
35265
35267
|
name = "FORM " + ((_a = s.findFirstExpression(Expressions.FormName)) === null || _a === void 0 ? void 0 : _a.concatTokens());
|
|
@@ -35277,6 +35279,10 @@ class StatementFlow {
|
|
|
35277
35279
|
name = "FUNCTION " + ((_d = s.findFirstExpression(Expressions.Field)) === null || _d === void 0 ? void 0 : _d.concatTokens());
|
|
35278
35280
|
ret.push(this.run(s, name));
|
|
35279
35281
|
}
|
|
35282
|
+
else if (s.get() instanceof Structures.Module) {
|
|
35283
|
+
name = s.getFirstStatement().concatTokens().toUpperCase();
|
|
35284
|
+
ret.push(this.run(s, name));
|
|
35285
|
+
}
|
|
35280
35286
|
else {
|
|
35281
35287
|
throw new Error("StatementFlow, unknown structure");
|
|
35282
35288
|
}
|
|
@@ -44892,6 +44898,45 @@ exports.AbstractObject = AbstractObject;
|
|
|
44892
44898
|
|
|
44893
44899
|
/***/ }),
|
|
44894
44900
|
|
|
44901
|
+
/***/ "./node_modules/@abaplint/core/build/src/objects/_dynpros.js":
|
|
44902
|
+
/*!*******************************************************************!*\
|
|
44903
|
+
!*** ./node_modules/@abaplint/core/build/src/objects/_dynpros.js ***!
|
|
44904
|
+
\*******************************************************************/
|
|
44905
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
44906
|
+
|
|
44907
|
+
"use strict";
|
|
44908
|
+
|
|
44909
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
44910
|
+
exports.parseDynpros = parseDynpros;
|
|
44911
|
+
const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
|
|
44912
|
+
function parseDynpros(parsed) {
|
|
44913
|
+
var _a, _b, _c, _d;
|
|
44914
|
+
const dynpros = [];
|
|
44915
|
+
const xmlDynpros = (_c = (_b = (_a = parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]) === null || _b === void 0 ? void 0 : _b["asx:values"]) === null || _c === void 0 ? void 0 : _c.DYNPROS;
|
|
44916
|
+
if (xmlDynpros !== undefined) {
|
|
44917
|
+
for (const d of (0, xml_utils_1.xmlToArray)(xmlDynpros.item)) {
|
|
44918
|
+
const fields = [];
|
|
44919
|
+
for (const f of (0, xml_utils_1.xmlToArray)((_d = d.FIELDS) === null || _d === void 0 ? void 0 : _d.RPY_DYFATC)) {
|
|
44920
|
+
fields.push({
|
|
44921
|
+
name: f.NAME,
|
|
44922
|
+
type: f.TYPE,
|
|
44923
|
+
length: f.LENGTH,
|
|
44924
|
+
});
|
|
44925
|
+
}
|
|
44926
|
+
dynpros.push({
|
|
44927
|
+
number: d.HEADER.SCREEN,
|
|
44928
|
+
description: d.HEADER.DESCRIPT,
|
|
44929
|
+
nextScreen: d.HEADER.NEXTSCREEN,
|
|
44930
|
+
fields: fields,
|
|
44931
|
+
});
|
|
44932
|
+
}
|
|
44933
|
+
}
|
|
44934
|
+
return dynpros;
|
|
44935
|
+
}
|
|
44936
|
+
//# sourceMappingURL=_dynpros.js.map
|
|
44937
|
+
|
|
44938
|
+
/***/ }),
|
|
44939
|
+
|
|
44895
44940
|
/***/ "./node_modules/@abaplint/core/build/src/objects/_unknown_object.js":
|
|
44896
44941
|
/*!**************************************************************************!*\
|
|
44897
44942
|
!*** ./node_modules/@abaplint/core/build/src/objects/_unknown_object.js ***!
|
|
@@ -47295,18 +47340,23 @@ const _abap_object_1 = __webpack_require__(/*! ./_abap_object */ "./node_modules
|
|
|
47295
47340
|
const types_1 = __webpack_require__(/*! ../abap/types */ "./node_modules/@abaplint/core/build/src/abap/types/index.js");
|
|
47296
47341
|
const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
|
|
47297
47342
|
const fast_xml_parser_1 = __webpack_require__(/*! fast-xml-parser */ "./node_modules/fast-xml-parser/src/fxp.js");
|
|
47343
|
+
const _dynpros_1 = __webpack_require__(/*! ./_dynpros */ "./node_modules/@abaplint/core/build/src/objects/_dynpros.js");
|
|
47298
47344
|
class FunctionGroup extends _abap_object_1.ABAPObject {
|
|
47299
47345
|
constructor() {
|
|
47300
47346
|
super(...arguments);
|
|
47301
47347
|
this.includes = undefined;
|
|
47302
47348
|
this.modules = undefined;
|
|
47349
|
+
this.description = undefined;
|
|
47350
|
+
this.dynpros = undefined;
|
|
47303
47351
|
}
|
|
47304
47352
|
getType() {
|
|
47305
47353
|
return "FUGR";
|
|
47306
47354
|
}
|
|
47307
47355
|
getDescription() {
|
|
47308
|
-
|
|
47309
|
-
|
|
47356
|
+
if (this.description === undefined) {
|
|
47357
|
+
this.parseXML();
|
|
47358
|
+
}
|
|
47359
|
+
return this.description;
|
|
47310
47360
|
}
|
|
47311
47361
|
setDirty() {
|
|
47312
47362
|
super.setDirty();
|
|
@@ -47319,6 +47369,12 @@ class FunctionGroup extends _abap_object_1.ABAPObject {
|
|
|
47319
47369
|
allowNamespace: true,
|
|
47320
47370
|
};
|
|
47321
47371
|
}
|
|
47372
|
+
getDynpros() {
|
|
47373
|
+
if (this.dynpros === undefined) {
|
|
47374
|
+
this.parseXML();
|
|
47375
|
+
}
|
|
47376
|
+
return this.dynpros || [];
|
|
47377
|
+
}
|
|
47322
47378
|
getSequencedFiles() {
|
|
47323
47379
|
const main = this.getMainABAPFile();
|
|
47324
47380
|
if (main === undefined) {
|
|
@@ -47420,22 +47476,24 @@ class FunctionGroup extends _abap_object_1.ABAPObject {
|
|
|
47420
47476
|
}
|
|
47421
47477
|
/////////////////////////////////
|
|
47422
47478
|
parseXML() {
|
|
47423
|
-
var _a, _b;
|
|
47479
|
+
var _a, _b, _c;
|
|
47424
47480
|
this.includes = [];
|
|
47425
47481
|
this.modules = [];
|
|
47426
47482
|
const parsed = this.parseRaw2();
|
|
47427
47483
|
if (parsed === undefined) {
|
|
47428
47484
|
return;
|
|
47429
47485
|
}
|
|
47486
|
+
this.description = (_a = parsed.abapGit["asx:abap"]["asx:values"]) === null || _a === void 0 ? void 0 : _a.AREAT;
|
|
47487
|
+
this.dynpros = (0, _dynpros_1.parseDynpros)(parsed);
|
|
47430
47488
|
// INCLUDES
|
|
47431
|
-
const includes = (
|
|
47489
|
+
const includes = (_b = parsed.abapGit["asx:abap"]["asx:values"]) === null || _b === void 0 ? void 0 : _b.INCLUDES;
|
|
47432
47490
|
if (includes !== undefined) {
|
|
47433
47491
|
for (const i of (0, xml_utils_1.xmlToArray)(includes.SOBJ_NAME)) {
|
|
47434
47492
|
this.includes.push(i);
|
|
47435
47493
|
}
|
|
47436
47494
|
}
|
|
47437
47495
|
// FUNCTION MODULES
|
|
47438
|
-
const functions = (
|
|
47496
|
+
const functions = (_c = parsed.abapGit["asx:abap"]["asx:values"]) === null || _c === void 0 ? void 0 : _c.FUNCTIONS;
|
|
47439
47497
|
for (const module of (0, xml_utils_1.xmlToArray)(functions === null || functions === void 0 ? void 0 : functions.item)) {
|
|
47440
47498
|
this.modules.push(new types_1.FunctionModuleDefinition(module));
|
|
47441
47499
|
}
|
|
@@ -49794,7 +49852,7 @@ exports.PersonalizationObject = PersonalizationObject;
|
|
|
49794
49852
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
49795
49853
|
exports.Program = void 0;
|
|
49796
49854
|
const _abap_object_1 = __webpack_require__(/*! ./_abap_object */ "./node_modules/@abaplint/core/build/src/objects/_abap_object.js");
|
|
49797
|
-
const
|
|
49855
|
+
const _dynpros_1 = __webpack_require__(/*! ./_dynpros */ "./node_modules/@abaplint/core/build/src/objects/_dynpros.js");
|
|
49798
49856
|
class Program extends _abap_object_1.ABAPObject {
|
|
49799
49857
|
getType() {
|
|
49800
49858
|
return "PROG";
|
|
@@ -49830,11 +49888,10 @@ class Program extends _abap_object_1.ABAPObject {
|
|
|
49830
49888
|
}
|
|
49831
49889
|
getDynpros() {
|
|
49832
49890
|
this.parseXML();
|
|
49833
|
-
return this.parsedXML.dynpros;
|
|
49891
|
+
return this.parsedXML.dynpros || [];
|
|
49834
49892
|
}
|
|
49835
49893
|
////////////////////////////
|
|
49836
49894
|
parseXML() {
|
|
49837
|
-
var _a, _b, _c, _d;
|
|
49838
49895
|
if (this.parsedXML !== undefined) {
|
|
49839
49896
|
return;
|
|
49840
49897
|
}
|
|
@@ -49848,24 +49905,7 @@ class Program extends _abap_object_1.ABAPObject {
|
|
|
49848
49905
|
};
|
|
49849
49906
|
return;
|
|
49850
49907
|
}
|
|
49851
|
-
const dynpros =
|
|
49852
|
-
const xmlDynpros = (_c = (_b = (_a = parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]) === null || _b === void 0 ? void 0 : _b["asx:values"]) === null || _c === void 0 ? void 0 : _c.DYNPROS;
|
|
49853
|
-
if (xmlDynpros !== undefined) {
|
|
49854
|
-
for (const d of (0, xml_utils_1.xmlToArray)(xmlDynpros.item)) {
|
|
49855
|
-
const fields = [];
|
|
49856
|
-
for (const f of (0, xml_utils_1.xmlToArray)((_d = d.FIELDS) === null || _d === void 0 ? void 0 : _d.RPY_DYFATC)) {
|
|
49857
|
-
fields.push({
|
|
49858
|
-
name: f.NAME,
|
|
49859
|
-
type: f.TYPE,
|
|
49860
|
-
length: f.LENGTH,
|
|
49861
|
-
});
|
|
49862
|
-
}
|
|
49863
|
-
dynpros.push({
|
|
49864
|
-
number: d.HEADER.SCREEN,
|
|
49865
|
-
fields: fields,
|
|
49866
|
-
});
|
|
49867
|
-
}
|
|
49868
|
-
}
|
|
49908
|
+
const dynpros = (0, _dynpros_1.parseDynpros)(parsed);
|
|
49869
49909
|
this.parsedXML = {
|
|
49870
49910
|
isInclude: file ? file.getRaw().includes("<SUBC>I</SUBC>") : false,
|
|
49871
49911
|
isModulePool: file ? file.getRaw().includes("<SUBC>M</SUBC>") : false,
|
|
@@ -52642,7 +52682,7 @@ class Registry {
|
|
|
52642
52682
|
}
|
|
52643
52683
|
static abaplintVersion() {
|
|
52644
52684
|
// magic, see build script "version.sh"
|
|
52645
|
-
return "2.113.
|
|
52685
|
+
return "2.113.3";
|
|
52646
52686
|
}
|
|
52647
52687
|
getDDICReferences() {
|
|
52648
52688
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.3",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
41
|
+
"@abaplint/core": "^2.113.3",
|
|
42
42
|
"@types/chai": "^4.3.19",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.7",
|
|
46
|
-
"@types/node": "^22.5.
|
|
46
|
+
"@types/node": "^22.5.2",
|
|
47
47
|
"@types/progress": "^2.0.7",
|
|
48
48
|
"chai": "^4.5.0",
|
|
49
49
|
"chalk": "^5.3.0",
|