@abaplint/cli 2.106.5 → 2.106.7
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 -3
- package/package.json +6 -6
package/build/cli.js
CHANGED
|
@@ -8890,9 +8890,8 @@ class Target extends combi_1.Expression {
|
|
|
8890
8890
|
const attr = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.InstanceArrow), attribute_name_1.AttributeName);
|
|
8891
8891
|
const comp = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), _1.ComponentName);
|
|
8892
8892
|
const something = (0, combi_1.starPrio)((0, combi_1.altPrio)(dereference_1.Dereference, attr, comp, _1.TableExpression));
|
|
8893
|
-
const cast = (0, combi_1.seq)((0, combi_1.altPrio)(_1.Cast, _1.NewObject), _1.Arrow, _1.FieldAll);
|
|
8894
8893
|
const clas = (0, combi_1.seq)(_1.ClassName, (0, combi_1.tok)(tokens_1.StaticArrow), attribute_name_1.AttributeName);
|
|
8895
|
-
const start = (0, combi_1.altPrio)(
|
|
8894
|
+
const start = (0, combi_1.altPrio)(_1.Cast, _1.NewObject, clas, _1.TargetField, _1.TargetFieldSymbol);
|
|
8896
8895
|
const fields = (0, combi_1.seq)((0, combi_1.optPrio)(_1.FieldOffset), (0, combi_1.optPrio)(_1.FieldLength));
|
|
8897
8896
|
const optional = (0, combi_1.altPrio)(_1.TableBody, fields);
|
|
8898
8897
|
return (0, combi_1.altPrio)(_1.InlineData, _1.InlineFS, (0, combi_1.seq)(start, something, optional));
|
|
@@ -23908,6 +23907,7 @@ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ ".
|
|
|
23908
23907
|
const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/source.js");
|
|
23909
23908
|
const _type_utils_1 = __webpack_require__(/*! ../_type_utils */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_type_utils.js");
|
|
23910
23909
|
const basic_types_1 = __webpack_require__(/*! ../basic_types */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/basic_types.js");
|
|
23910
|
+
const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
|
|
23911
23911
|
class Cast {
|
|
23912
23912
|
runSyntax(node, scope, targetType, filename) {
|
|
23913
23913
|
const sourceNode = node.findDirectExpression(Expressions.Source);
|
|
@@ -23934,6 +23934,7 @@ class Cast {
|
|
|
23934
23934
|
const found = scope.findObjectDefinition(typeName);
|
|
23935
23935
|
if (found) {
|
|
23936
23936
|
tt = new basic_1.ObjectReferenceType(found, { qualifiedName: typeName });
|
|
23937
|
+
scope.addReference(typeExpression.getFirstToken(), found, _reference_1.ReferenceType.ObjectOrientedReference, filename);
|
|
23937
23938
|
}
|
|
23938
23939
|
}
|
|
23939
23940
|
else {
|
|
@@ -27456,6 +27457,7 @@ const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@a
|
|
|
27456
27457
|
const table_expression_1 = __webpack_require__(/*! ./table_expression */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/table_expression.js");
|
|
27457
27458
|
const expressions_1 = __webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
27458
27459
|
const field_length_1 = __webpack_require__(/*! ./field_length */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/field_length.js");
|
|
27460
|
+
const cast_1 = __webpack_require__(/*! ./cast */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/cast.js");
|
|
27459
27461
|
class Target {
|
|
27460
27462
|
runSyntax(node, scope, filename) {
|
|
27461
27463
|
const concat = node.concatTokens();
|
|
@@ -27587,6 +27589,13 @@ class Target {
|
|
|
27587
27589
|
return new unknown_type_1.UnknownType(name + " unknown, Target");
|
|
27588
27590
|
}
|
|
27589
27591
|
}
|
|
27592
|
+
else if (node.get() instanceof Expressions.Cast && node instanceof nodes_1.ExpressionNode) {
|
|
27593
|
+
const ret = new cast_1.Cast().runSyntax(node, scope, undefined, filename);
|
|
27594
|
+
if (ret instanceof unknown_type_1.UnknownType) {
|
|
27595
|
+
throw new Error("CAST, uknown type");
|
|
27596
|
+
}
|
|
27597
|
+
return ret;
|
|
27598
|
+
}
|
|
27590
27599
|
return new unknown_type_1.UnknownType("unknown target type");
|
|
27591
27600
|
}
|
|
27592
27601
|
}
|
|
@@ -51442,7 +51451,7 @@ class Registry {
|
|
|
51442
51451
|
}
|
|
51443
51452
|
static abaplintVersion() {
|
|
51444
51453
|
// magic, see build script "version.sh"
|
|
51445
|
-
return "2.106.
|
|
51454
|
+
return "2.106.7";
|
|
51446
51455
|
}
|
|
51447
51456
|
getDDICReferences() {
|
|
51448
51457
|
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.7",
|
|
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.7",
|
|
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"
|