@abaplint/cli 2.106.4 → 2.106.6
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 +12 -2
- package/package.json +6 -6
package/build/cli.js
CHANGED
|
@@ -23908,6 +23908,7 @@ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ ".
|
|
|
23908
23908
|
const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
|
|
23909
23909
|
const _type_utils_1 = __webpack_require__(/*! ../_type_utils */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_type_utils.js");
|
|
23910
23910
|
const basic_types_1 = __webpack_require__(/*! ../basic_types */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/basic_types.js");
|
|
23911
|
+
const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
23911
23912
|
class Cast {
|
|
23912
23913
|
runSyntax(node, scope, targetType, filename) {
|
|
23913
23914
|
const sourceNode = node.findDirectExpression(Expressions.Source);
|
|
@@ -23934,6 +23935,7 @@ class Cast {
|
|
|
23934
23935
|
const found = scope.findObjectDefinition(typeName);
|
|
23935
23936
|
if (found) {
|
|
23936
23937
|
tt = new basic_1.ObjectReferenceType(found, { qualifiedName: typeName });
|
|
23938
|
+
scope.addReference(typeExpression.getFirstToken(), found, _reference_1.ReferenceType.ObjectOrientedReference, filename);
|
|
23937
23939
|
}
|
|
23938
23940
|
}
|
|
23939
23941
|
else {
|
|
@@ -30638,7 +30640,8 @@ class InsertInternal {
|
|
|
30638
30640
|
if (!(targetType instanceof basic_1.TableType)
|
|
30639
30641
|
&& !(targetType instanceof basic_1.VoidType)
|
|
30640
30642
|
&& !(targetType instanceof basic_1.AnyType)
|
|
30641
|
-
&& !(targetType instanceof basic_1.UnknownType)
|
|
30643
|
+
&& !(targetType instanceof basic_1.UnknownType)
|
|
30644
|
+
&& targetType !== undefined) {
|
|
30642
30645
|
throw new Error("INSERT target must be a table");
|
|
30643
30646
|
}
|
|
30644
30647
|
else if (targetType instanceof basic_1.TableType
|
|
@@ -30650,6 +30653,13 @@ class InsertInternal {
|
|
|
30650
30653
|
source = node.findDirectExpression(Expressions.Source);
|
|
30651
30654
|
}
|
|
30652
30655
|
const sourceType = source ? new source_1.Source().runSyntax(source, scope, filename, targetType) : targetType;
|
|
30656
|
+
if (targetType === undefined
|
|
30657
|
+
&& !(sourceType instanceof basic_1.TableType)
|
|
30658
|
+
&& !(sourceType instanceof basic_1.VoidType)
|
|
30659
|
+
&& !(sourceType instanceof basic_1.AnyType)
|
|
30660
|
+
&& !(sourceType instanceof basic_1.UnknownType)) {
|
|
30661
|
+
throw new Error("INSERT target must be a table");
|
|
30662
|
+
}
|
|
30653
30663
|
const afterAssigning = node.findExpressionAfterToken("ASSIGNING");
|
|
30654
30664
|
if ((afterAssigning === null || afterAssigning === void 0 ? void 0 : afterAssigning.get()) instanceof Expressions.FSTarget) {
|
|
30655
30665
|
const inlinefs = afterAssigning === null || afterAssigning === void 0 ? void 0 : afterAssigning.findDirectExpression(Expressions.InlineFS);
|
|
@@ -51434,7 +51444,7 @@ class Registry {
|
|
|
51434
51444
|
}
|
|
51435
51445
|
static abaplintVersion() {
|
|
51436
51446
|
// magic, see build script "version.sh"
|
|
51437
|
-
return "2.106.
|
|
51447
|
+
return "2.106.6";
|
|
51438
51448
|
}
|
|
51439
51449
|
getDDICReferences() {
|
|
51440
51450
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.106.
|
|
3
|
+
"version": "2.106.6",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.106.
|
|
41
|
+
"@abaplint/core": "^2.106.6",
|
|
42
42
|
"@types/chai": "^4.3.14",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.6",
|
|
46
|
-
"@types/node": "^20.
|
|
46
|
+
"@types/node": "^20.12.7",
|
|
47
47
|
"@types/progress": "^2.0.7",
|
|
48
48
|
"chai": "^4.4.1",
|
|
49
49
|
"chalk": "^5.3.0",
|
|
50
50
|
"eslint": "^8.57.0",
|
|
51
51
|
"glob": "^7.2.3",
|
|
52
52
|
"json5": "^2.2.3",
|
|
53
|
-
"memfs": "^4.8.
|
|
53
|
+
"memfs": "^4.8.2",
|
|
54
54
|
"minimist": "^1.2.8",
|
|
55
|
-
"mocha": "^10.
|
|
55
|
+
"mocha": "^10.4.0",
|
|
56
56
|
"progress": "^2.0.3",
|
|
57
|
-
"typescript": "^5.4.
|
|
57
|
+
"typescript": "^5.4.5",
|
|
58
58
|
"webpack": "^5.91.0",
|
|
59
59
|
"webpack-cli": "^5.1.4",
|
|
60
60
|
"xml-js": "^1.6.11"
|