@abaplint/core 2.106.6 → 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.
|
@@ -11,9 +11,8 @@ class Target extends combi_1.Expression {
|
|
|
11
11
|
const attr = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.InstanceArrow), attribute_name_1.AttributeName);
|
|
12
12
|
const comp = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), _1.ComponentName);
|
|
13
13
|
const something = (0, combi_1.starPrio)((0, combi_1.altPrio)(dereference_1.Dereference, attr, comp, _1.TableExpression));
|
|
14
|
-
const cast = (0, combi_1.seq)((0, combi_1.altPrio)(_1.Cast, _1.NewObject), _1.Arrow, _1.FieldAll);
|
|
15
14
|
const clas = (0, combi_1.seq)(_1.ClassName, (0, combi_1.tok)(tokens_1.StaticArrow), attribute_name_1.AttributeName);
|
|
16
|
-
const start = (0, combi_1.altPrio)(
|
|
15
|
+
const start = (0, combi_1.altPrio)(_1.Cast, _1.NewObject, clas, _1.TargetField, _1.TargetFieldSymbol);
|
|
17
16
|
const fields = (0, combi_1.seq)((0, combi_1.optPrio)(_1.FieldOffset), (0, combi_1.optPrio)(_1.FieldLength));
|
|
18
17
|
const optional = (0, combi_1.altPrio)(_1.TableBody, fields);
|
|
19
18
|
return (0, combi_1.altPrio)(_1.InlineData, _1.InlineFS, (0, combi_1.seq)(start, something, optional));
|
|
@@ -13,6 +13,7 @@ const _reference_1 = require("../_reference");
|
|
|
13
13
|
const table_expression_1 = require("./table_expression");
|
|
14
14
|
const expressions_1 = require("../../2_statements/expressions");
|
|
15
15
|
const field_length_1 = require("./field_length");
|
|
16
|
+
const cast_1 = require("./cast");
|
|
16
17
|
class Target {
|
|
17
18
|
runSyntax(node, scope, filename) {
|
|
18
19
|
const concat = node.concatTokens();
|
|
@@ -144,6 +145,13 @@ class Target {
|
|
|
144
145
|
return new unknown_type_1.UnknownType(name + " unknown, Target");
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
else if (node.get() instanceof Expressions.Cast && node instanceof nodes_1.ExpressionNode) {
|
|
149
|
+
const ret = new cast_1.Cast().runSyntax(node, scope, undefined, filename);
|
|
150
|
+
if (ret instanceof unknown_type_1.UnknownType) {
|
|
151
|
+
throw new Error("CAST, uknown type");
|
|
152
|
+
}
|
|
153
|
+
return ret;
|
|
154
|
+
}
|
|
147
155
|
return new unknown_type_1.UnknownType("unknown target type");
|
|
148
156
|
}
|
|
149
157
|
}
|
package/build/src/registry.js
CHANGED