@abaplint/core 2.95.25 → 2.95.26
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.
|
@@ -4,6 +4,7 @@ exports.Submit = void 0;
|
|
|
4
4
|
const Expressions = require("../../2_statements/expressions");
|
|
5
5
|
const source_1 = require("../expressions/source");
|
|
6
6
|
const target_1 = require("../expressions/target");
|
|
7
|
+
const dynamic_1 = require("../expressions/dynamic");
|
|
7
8
|
class Submit {
|
|
8
9
|
runSyntax(node, scope, filename) {
|
|
9
10
|
for (const s of node.findDirectExpressions(Expressions.Source)) {
|
|
@@ -12,6 +13,9 @@ class Submit {
|
|
|
12
13
|
for (const t of node.findDirectExpressions(Expressions.Target)) {
|
|
13
14
|
new target_1.Target().runSyntax(t, scope, filename);
|
|
14
15
|
}
|
|
16
|
+
for (const t of node.findDirectExpressions(Expressions.Dynamic)) {
|
|
17
|
+
new dynamic_1.Dynamic().runSyntax(t, scope, filename);
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
}
|
|
17
21
|
exports.Submit = Submit;
|
package/build/src/registry.js
CHANGED
|
@@ -2215,6 +2215,9 @@ ${indentation} output = ${topTarget}.`;
|
|
|
2215
2215
|
else if (c.get() instanceof Expressions.Source) {
|
|
2216
2216
|
code += indent + " " + uniqueName + " = " + c.concatTokens() + ".\n";
|
|
2217
2217
|
}
|
|
2218
|
+
else if (c.get() instanceof Expressions.Throw) {
|
|
2219
|
+
code += indent + " " + c.concatTokens().replace("THROW", "RAISE EXCEPTION NEW") + ".\n";
|
|
2220
|
+
}
|
|
2218
2221
|
else {
|
|
2219
2222
|
throw "buildCondBody, unexpected expression, " + c.get().constructor.name;
|
|
2220
2223
|
}
|
|
@@ -21,7 +21,9 @@ class MethodOverwritesBuiltIn extends _abap_rule_1.ABAPRule {
|
|
|
21
21
|
shortDescription: `Checks Method names that overwrite builtin SAP functions`,
|
|
22
22
|
extendedInformation: `https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abenbuilt_in_functions_overview.htm
|
|
23
23
|
|
|
24
|
-
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-obscuring-built-in-functions
|
|
24
|
+
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-obscuring-built-in-functions
|
|
25
|
+
|
|
26
|
+
Interface method names are ignored`,
|
|
25
27
|
tags: [_irule_1.RuleTag.Naming, _irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Styleguide],
|
|
26
28
|
};
|
|
27
29
|
}
|
|
@@ -37,9 +39,6 @@ https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-obscu
|
|
|
37
39
|
for (const classDef of file.getInfo().listClassDefinitions()) {
|
|
38
40
|
methods = methods.concat(classDef.methods);
|
|
39
41
|
}
|
|
40
|
-
for (const intfDef of file.getInfo().listInterfaceDefinitions()) {
|
|
41
|
-
methods = methods.concat(intfDef.methods);
|
|
42
|
-
}
|
|
43
42
|
const builtIn = new _builtin_1.BuiltIn();
|
|
44
43
|
for (const method of methods) {
|
|
45
44
|
if (builtIn.searchBuiltin(method.name.toUpperCase())) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.95.
|
|
3
|
+
"version": "2.95.26",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@types/mocha": "^10.0.1",
|
|
53
53
|
"@types/node": "^18.14.1",
|
|
54
54
|
"chai": "^4.3.7",
|
|
55
|
-
"eslint": "^8.
|
|
55
|
+
"eslint": "^8.35.0",
|
|
56
56
|
"mocha": "^10.2.0",
|
|
57
57
|
"c8": "^7.13.0",
|
|
58
58
|
"source-map-support": "^0.5.21",
|