@abaplint/cli 2.113.230 → 2.113.232
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 +20 -10
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -4547,9 +4547,11 @@ exports.ComponentCompareSimple = void 0;
|
|
|
4547
4547
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
4548
4548
|
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
4549
4549
|
const component_chain_simple_1 = __webpack_require__(/*! ./component_chain_simple */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/component_chain_simple.js");
|
|
4550
|
+
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
4550
4551
|
class ComponentCompareSimple extends combi_1.Expression {
|
|
4551
4552
|
getRunnable() {
|
|
4552
|
-
const
|
|
4553
|
+
const source = (0, combi_1.altPrio)((0, combi_1.ver)(version_1.Version.v740sp02, _1.Source, version_1.Version.OpenABAP), _1.SimpleSource4);
|
|
4554
|
+
const ret = (0, combi_1.seq)((0, combi_1.altPrio)(component_chain_simple_1.ComponentChainSimple, _1.Dynamic), "=", source);
|
|
4553
4555
|
return (0, combi_1.plus)(ret);
|
|
4554
4556
|
}
|
|
4555
4557
|
}
|
|
@@ -10748,7 +10750,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
|
|
|
10748
10750
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
10749
10751
|
class CallBadi {
|
|
10750
10752
|
getMatcher() {
|
|
10751
|
-
const call = (0, combi_1.seq)("CALL
|
|
10753
|
+
const call = (0, combi_1.seq)("CALL BADI", expressions_1.MethodSource, expressions_1.MethodCallBody);
|
|
10752
10754
|
return (0, combi_1.verNot)(version_1.Version.Cloud, call);
|
|
10753
10755
|
}
|
|
10754
10756
|
}
|
|
@@ -25455,7 +25457,9 @@ class ComponentCompareSimple {
|
|
|
25455
25457
|
else if (c.get() instanceof Expressions.Dynamic) {
|
|
25456
25458
|
targetType = undefined;
|
|
25457
25459
|
}
|
|
25458
|
-
else if (c.get() instanceof Expressions.Source
|
|
25460
|
+
else if (c.get() instanceof Expressions.Source
|
|
25461
|
+
|| c.get() instanceof Expressions.SimpleSource4
|
|
25462
|
+
|| c.get() instanceof Expressions.SimpleSource2) {
|
|
25459
25463
|
const sourceType = source_1.Source.runSyntax(c, input, targetType);
|
|
25460
25464
|
if (targetType && new _type_utils_1.TypeUtils(input.scope).isAssignable(sourceType, targetType) === false) {
|
|
25461
25465
|
const message = "ComponentCompareSimple, incompatible types";
|
|
@@ -26025,7 +26029,7 @@ class FieldChain {
|
|
|
26025
26029
|
if (((_a = node.getFirstChild()) === null || _a === void 0 ? void 0 : _a.get()) instanceof Expressions.SourceField
|
|
26026
26030
|
&& node.findDirectExpression(Expressions.ComponentName)) {
|
|
26027
26031
|
// workaround for names with dashes, eg. "sy-repid"
|
|
26028
|
-
const concat = node.concatTokens();
|
|
26032
|
+
const concat = node.concatTokens().replace(/ /g, "");
|
|
26029
26033
|
const offset = ((_b = node.findDirectExpression(Expressions.FieldOffset)) === null || _b === void 0 ? void 0 : _b.concatTokens()) || "";
|
|
26030
26034
|
const length = ((_c = node.findDirectExpression(Expressions.FieldLength)) === null || _c === void 0 ? void 0 : _c.concatTokens()) || "";
|
|
26031
26035
|
const found = input.scope.findVariable(concat.replace(offset, "").replace(length, ""));
|
|
@@ -33951,11 +33955,8 @@ const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modu
|
|
|
33951
33955
|
class ReadTable {
|
|
33952
33956
|
runSyntax(node, input) {
|
|
33953
33957
|
const concat = node.concatTokens().toUpperCase();
|
|
33954
|
-
const sources = node.
|
|
33955
|
-
|
|
33956
|
-
if (firstSource === undefined) {
|
|
33957
|
-
firstSource = sources[0];
|
|
33958
|
-
}
|
|
33958
|
+
const sources = node.findDirectExpressionsMulti([Expressions.Source, Expressions.SimpleSource2]);
|
|
33959
|
+
const firstSource = sources[0];
|
|
33959
33960
|
const sourceType = firstSource ? source_1.Source.runSyntax(firstSource, input) : undefined;
|
|
33960
33961
|
if (sourceType === undefined) {
|
|
33961
33962
|
const message = "No source type determined, read table";
|
|
@@ -37197,6 +37198,15 @@ class StatementNode extends _abstract_node_1.AbstractNode {
|
|
|
37197
37198
|
}
|
|
37198
37199
|
return ret;
|
|
37199
37200
|
}
|
|
37201
|
+
findDirectExpressionsMulti(type) {
|
|
37202
|
+
const ret = [];
|
|
37203
|
+
for (const child of this.getChildren()) {
|
|
37204
|
+
if (child instanceof expression_node_1.ExpressionNode && type.some(t => child.get() instanceof t)) {
|
|
37205
|
+
ret.push(child);
|
|
37206
|
+
}
|
|
37207
|
+
}
|
|
37208
|
+
return ret;
|
|
37209
|
+
}
|
|
37200
37210
|
findDirectTokenByText(text) {
|
|
37201
37211
|
const upper = text.toUpperCase();
|
|
37202
37212
|
for (const child of this.getChildren()) {
|
|
@@ -54727,7 +54737,7 @@ class Registry {
|
|
|
54727
54737
|
}
|
|
54728
54738
|
static abaplintVersion() {
|
|
54729
54739
|
// magic, see build script "version.sh"
|
|
54730
|
-
return "2.113.
|
|
54740
|
+
return "2.113.232";
|
|
54731
54741
|
}
|
|
54732
54742
|
getDDICReferences() {
|
|
54733
54743
|
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.232",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
41
|
+
"@abaplint/core": "^2.113.232",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|