@abaplint/core 2.94.22 → 2.94.23
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,13 +4,21 @@ exports.GetBit = 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 basic_1 = require("../../types/basic");
|
|
8
|
+
const inline_data_1 = require("../expressions/inline_data");
|
|
7
9
|
class GetBit {
|
|
8
10
|
runSyntax(node, scope, filename) {
|
|
9
11
|
for (const s of node.findDirectExpressions(Expressions.Source)) {
|
|
10
12
|
new source_1.Source().runSyntax(s, scope, filename);
|
|
11
13
|
}
|
|
12
14
|
for (const t of node.findDirectExpressions(Expressions.Target)) {
|
|
13
|
-
|
|
15
|
+
const inline = t === null || t === void 0 ? void 0 : t.findDirectExpression(Expressions.InlineData);
|
|
16
|
+
if (inline) {
|
|
17
|
+
new inline_data_1.InlineData().runSyntax(t, scope, filename, new basic_1.IntegerType());
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
new target_1.Target().runSyntax(t, scope, filename);
|
|
21
|
+
}
|
|
14
22
|
}
|
|
15
23
|
}
|
|
16
24
|
}
|
|
@@ -68,11 +68,15 @@ class MethodParameters {
|
|
|
68
68
|
return this.importing;
|
|
69
69
|
}
|
|
70
70
|
getRequiredParameters() {
|
|
71
|
+
var _a;
|
|
71
72
|
const ret = [];
|
|
72
73
|
for (const i of this.getImporting()) {
|
|
73
74
|
if (this.getOptional().some(o => o.toUpperCase() === i.getName().toUpperCase()) === true) {
|
|
74
75
|
continue;
|
|
75
76
|
}
|
|
77
|
+
else if (((_a = this.preferred) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === i.getName().toUpperCase()) {
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
76
80
|
ret.push(i);
|
|
77
81
|
}
|
|
78
82
|
for (const i of this.getChanging()) {
|
package/build/src/registry.js
CHANGED