@abaplint/transpiler-cli 2.10.76 → 2.10.78
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/bundle.js +27 -8
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -52062,7 +52062,7 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
52062
52062
|
}
|
|
52063
52063
|
if (found instanceof Types.StructureType) {
|
|
52064
52064
|
if (field.GROUPNAME !== undefined) {
|
|
52065
|
-
components.push({ name: field.GROUPNAME, type: found });
|
|
52065
|
+
components.push({ name: field.GROUPNAME, type: found, asInclude: true });
|
|
52066
52066
|
}
|
|
52067
52067
|
if (field.FIELDNAME.startsWith(".INCLU-") === false
|
|
52068
52068
|
|| field.FIELDNAME === ".INCLU--AP") {
|
|
@@ -53585,7 +53585,7 @@ class Registry {
|
|
|
53585
53585
|
}
|
|
53586
53586
|
static abaplintVersion() {
|
|
53587
53587
|
// magic, see build script "version.sh"
|
|
53588
|
-
return "2.113.
|
|
53588
|
+
return "2.113.150";
|
|
53589
53589
|
}
|
|
53590
53590
|
getDDICReferences() {
|
|
53591
53591
|
return this.ddicReferences;
|
|
@@ -67361,6 +67361,7 @@ exports.MethodParameterNames = MethodParameterNames;
|
|
|
67361
67361
|
|
|
67362
67362
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
67363
67363
|
exports.MixReturning = exports.MixReturningConf = void 0;
|
|
67364
|
+
/* eslint-disable max-len */
|
|
67364
67365
|
const issue_1 = __webpack_require__(/*! ../issue */ "./node_modules/@abaplint/core/build/src/issue.js");
|
|
67365
67366
|
const _abap_rule_1 = __webpack_require__(/*! ./_abap_rule */ "./node_modules/@abaplint/core/build/src/rules/_abap_rule.js");
|
|
67366
67367
|
const Statements = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
@@ -67380,9 +67381,10 @@ class MixReturning extends _abap_rule_1.ABAPRule {
|
|
|
67380
67381
|
key: "mix_returning",
|
|
67381
67382
|
title: "Mix of returning and exporting",
|
|
67382
67383
|
shortDescription: `Checks that methods don't have a mixture of returning and exporting/changing parameters`,
|
|
67383
|
-
|
|
67384
|
-
|
|
67385
|
-
|
|
67384
|
+
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-either-returning-or-exporting-or-changing-but-not-a-combination
|
|
67385
|
+
|
|
67386
|
+
This syntax is not allowed on versions earlier than 740sp02, https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abennews-740-abap_objects.htm#!ABAP_MODIFICATION_1@1@`,
|
|
67387
|
+
tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Syntax],
|
|
67386
67388
|
badExample: `CLASS lcl DEFINITION.
|
|
67387
67389
|
PUBLIC SECTION.
|
|
67388
67390
|
METHODS
|
|
@@ -89242,13 +89244,30 @@ class TranspileTypes {
|
|
|
89242
89244
|
const list = [];
|
|
89243
89245
|
const suffix = {};
|
|
89244
89246
|
const asInclude = {};
|
|
89247
|
+
/*
|
|
89248
|
+
const skipFields: Set<string> = new Set();
|
|
89249
|
+
|
|
89245
89250
|
for (const c of type.getComponents()) {
|
|
89246
|
-
|
|
89251
|
+
if (c.type instanceof abaplint.BasicTypes.StructureType) {
|
|
89252
|
+
for (const f of c.type.getComponents()) {
|
|
89253
|
+
skipFields.add(f.name.toLowerCase());
|
|
89254
|
+
}
|
|
89255
|
+
}
|
|
89256
|
+
}
|
|
89257
|
+
*/
|
|
89258
|
+
for (const c of type.getComponents()) {
|
|
89259
|
+
const lower = c.name.toLowerCase();
|
|
89260
|
+
/*
|
|
89261
|
+
if (skipFields.has(lower)) {
|
|
89262
|
+
continue; // skip fields from nested structures
|
|
89263
|
+
}
|
|
89264
|
+
*/
|
|
89265
|
+
list.push(`"` + lower + `": ` + this.toType(c.type));
|
|
89247
89266
|
if (c.suffix) {
|
|
89248
|
-
suffix[
|
|
89267
|
+
suffix[lower] = c.suffix;
|
|
89249
89268
|
}
|
|
89250
89269
|
if (c.asInclude) {
|
|
89251
|
-
asInclude[
|
|
89270
|
+
asInclude[lower] = true;
|
|
89252
89271
|
}
|
|
89253
89272
|
}
|
|
89254
89273
|
extra = "{\n" + list.join(",\n") + "}";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.78",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.113.
|
|
31
|
-
"@abaplint/transpiler": "^2.10.
|
|
30
|
+
"@abaplint/core": "^2.113.150",
|
|
31
|
+
"@abaplint/transpiler": "^2.10.78",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^22.16.5",
|
|
34
34
|
"@types/progress": "^2.0.7",
|