@abaplint/core 2.120.6 → 2.120.8
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/expressions/perform_using.js +2 -2
- package/build/src/abap/2_statements/statements/read_entities.js +2 -1
- package/build/src/abap/5_syntax/statements/perform.js +1 -1
- package/build/src/registry.js +1 -1
- package/build/src/rules/no_prefixes.js +3 -3
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PerformUsing = void 0;
|
|
4
4
|
const combi_1 = require("../combi");
|
|
5
|
-
const
|
|
5
|
+
const simple_source3_1 = require("./simple_source3");
|
|
6
6
|
class PerformUsing extends combi_1.Expression {
|
|
7
7
|
getRunnable() {
|
|
8
|
-
const using = (0, combi_1.seq)("USING", (0, combi_1.plus)(
|
|
8
|
+
const using = (0, combi_1.seq)("USING", (0, combi_1.plus)(simple_source3_1.SimpleSource3));
|
|
9
9
|
return using;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -13,7 +13,8 @@ class ReadEntities {
|
|
|
13
13
|
const result = (0, combi_1.seq)("RESULT", expressions_1.Target);
|
|
14
14
|
const failed = (0, combi_1.seq)("FAILED", expressions_1.Target);
|
|
15
15
|
const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
|
|
16
|
-
const
|
|
16
|
+
const execute = (0, combi_1.seq)("EXECUTE", expressions_1.SimpleName, from);
|
|
17
|
+
const foo = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.EMLEntityPath)), (0, combi_1.alt)(fields, from, all, execute), (0, combi_1.optPrio)(result));
|
|
17
18
|
const entity = (0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(foo));
|
|
18
19
|
const s = (0, combi_1.seq)("ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plus)(entity), (0, combi_1.optPrio)((0, combi_1.seq)("LINK", expressions_1.Target)), (0, combi_1.optPrio)((0, combi_1.per)(failed, reported)));
|
|
19
20
|
const byall = (0, combi_1.seq)("BY", expressions_1.EMLEntityPath, all);
|
|
@@ -60,7 +60,7 @@ class Perform {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
for (const u of node.findDirectExpressions(Expressions.PerformUsing)) {
|
|
63
|
-
for (const s of u.findDirectExpressions(Expressions.
|
|
63
|
+
for (const s of u.findDirectExpressions(Expressions.SimpleSource3)) {
|
|
64
64
|
source_1.Source.runSyntax(s, input);
|
|
65
65
|
}
|
|
66
66
|
}
|
package/build/src/registry.js
CHANGED
|
@@ -220,13 +220,13 @@ https://github.com/SAP/styleguides/blob/main/clean-abap/sub-sections/AvoidEncodi
|
|
|
220
220
|
return ret;
|
|
221
221
|
}
|
|
222
222
|
checkMethodParameters(topNode, regex, file) {
|
|
223
|
-
var _a, _b;
|
|
223
|
+
var _a, _b, _c;
|
|
224
224
|
const ret = [];
|
|
225
225
|
for (const method of topNode.findAllStatements(Statements.MethodDef)) {
|
|
226
226
|
for (const param of method.findAllExpressionsMulti([Expressions.MethodDefReturning, Expressions.MethodParam])) {
|
|
227
227
|
const nameToken = param === null || param === void 0 ? void 0 : param.findFirstExpression(Expressions.MethodParamName);
|
|
228
|
-
const
|
|
229
|
-
if (this.getConfig().allowIsPrefixBoolean === true &&
|
|
228
|
+
const typeName = (_c = (_b = (_a = param === null || param === void 0 ? void 0 : param.findFirstExpression(Expressions.TypeParam)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(Expressions.TypeNameOrInfer)) === null || _b === void 0 ? void 0 : _b.concatTokens()) === null || _c === void 0 ? void 0 : _c.toUpperCase();
|
|
229
|
+
if (this.getConfig().allowIsPrefixBoolean === true && typeName === "ABAP_BOOL") {
|
|
230
230
|
continue;
|
|
231
231
|
}
|
|
232
232
|
const name = nameToken === null || nameToken === void 0 ? void 0 : nameToken.concatTokens();
|