@abaplint/cli 2.105.11 → 2.105.12
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 +17 -1
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -26799,6 +26799,9 @@ class Source {
|
|
|
26799
26799
|
while (children.length >= 0) {
|
|
26800
26800
|
if (first instanceof nodes_1.ExpressionNode && first.get() instanceof Expressions.MethodCallChain) {
|
|
26801
26801
|
context = new method_call_chain_1.MethodCallChain().runSyntax(first, scope, filename, targetType);
|
|
26802
|
+
if (context === undefined) {
|
|
26803
|
+
throw new Error("Method has no RETURNING value");
|
|
26804
|
+
}
|
|
26802
26805
|
}
|
|
26803
26806
|
else if (first instanceof nodes_1.ExpressionNode && first.get() instanceof Expressions.FieldChain) {
|
|
26804
26807
|
context = new field_chain_1.FieldChain().runSyntax(first, scope, filename, type);
|
|
@@ -27003,6 +27006,19 @@ class SQLCompare {
|
|
|
27003
27006
|
}
|
|
27004
27007
|
sourceType = new sql_source_1.SQLSource().runSyntax(s, scope, filename);
|
|
27005
27008
|
}
|
|
27009
|
+
const sqlin = node.findDirectExpression(Expressions.SQLIn);
|
|
27010
|
+
if (sqlin && sqlin.getChildren().length === 2) {
|
|
27011
|
+
const insource = node.findFirstExpression(Expressions.SQLSource);
|
|
27012
|
+
if (insource) {
|
|
27013
|
+
const intype = new sql_source_1.SQLSource().runSyntax(insource, scope, filename);
|
|
27014
|
+
if (intype &&
|
|
27015
|
+
!(intype instanceof basic_1.VoidType) &&
|
|
27016
|
+
!(intype instanceof basic_1.UnknownType) &&
|
|
27017
|
+
!(intype instanceof basic_1.TableType)) {
|
|
27018
|
+
throw new Error("IN, not a table");
|
|
27019
|
+
}
|
|
27020
|
+
}
|
|
27021
|
+
}
|
|
27006
27022
|
const fieldName = (_a = node.findDirectExpression(Expressions.SQLFieldName)) === null || _a === void 0 ? void 0 : _a.concatTokens();
|
|
27007
27023
|
if (fieldName && sourceType && token) {
|
|
27008
27024
|
// check compatibility for rule sql_value_conversion
|
|
@@ -51126,7 +51142,7 @@ class Registry {
|
|
|
51126
51142
|
}
|
|
51127
51143
|
static abaplintVersion() {
|
|
51128
51144
|
// magic, see build script "version.sh"
|
|
51129
|
-
return "2.105.
|
|
51145
|
+
return "2.105.12";
|
|
51130
51146
|
}
|
|
51131
51147
|
getDDICReferences() {
|
|
51132
51148
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.105.
|
|
3
|
+
"version": "2.105.12",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.105.
|
|
41
|
+
"@abaplint/core": "^2.105.12",
|
|
42
42
|
"@types/chai": "^4.3.11",
|
|
43
|
-
"@types/glob": "^
|
|
43
|
+
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.6",
|
|
46
46
|
"@types/node": "^20.11.5",
|