@abaplint/cli 2.120.15 → 2.120.16
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 +21 -8
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -4766,7 +4766,7 @@ class FieldChain extends combi_1.Expression {
|
|
|
4766
4766
|
getRunnable() {
|
|
4767
4767
|
const attr = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.InstanceArrow), _1.AttributeName);
|
|
4768
4768
|
const comp = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.optPrio)(_1.ComponentName));
|
|
4769
|
-
const chain = (0, combi_1.star)((0, combi_1.altPrio)(_1.Dereference, (0, _dynamic_access_1.dynAttr)(), attr, (0, _dynamic_access_1.dynComp)((0, combi_1.optPrio)(_1.FieldOffset), (0, combi_1.optPrio)(_1.FieldLength)), comp, _1.TableExpression));
|
|
4769
|
+
const chain = (0, combi_1.star)((0, combi_1.altPrio)(_1.Dereference, (0, _dynamic_access_1.dynAttr)(), attr, (0, _dynamic_access_1.dynComp)((0, combi_1.optPrio)(_1.FieldOffset), (0, combi_1.optPrio)(_1.FieldLength)), comp, (0, combi_1.tok)(tokens_1.AssociationName), _1.TableExpression));
|
|
4770
4770
|
const clas = (0, combi_1.seq)(_1.ClassName, (0, combi_1.tok)(tokens_1.StaticArrow), _1.AttributeName);
|
|
4771
4771
|
const start = (0, combi_1.altPrio)(clas, _1.SourceField, _1.SourceFieldSymbol);
|
|
4772
4772
|
const after = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.DashW), (0, combi_1.seq)((0, combi_1.optPrio)(_1.TableBody), (0, combi_1.optPrio)(_1.FieldOffset), (0, combi_1.optPrio)(_1.FieldLength)));
|
|
@@ -10486,7 +10486,7 @@ class TableExpression extends combi_1.Expression {
|
|
|
10486
10486
|
const fields = (0, combi_1.plus)((0, combi_1.seq)((0, combi_1.altPrio)(_1.ComponentChainSimple, _1.Dynamic), "=", _1.Source));
|
|
10487
10487
|
const key = (0, combi_1.seq)("KEY", _1.SimpleName);
|
|
10488
10488
|
const index = (0, combi_1.seq)("INDEX", _1.Source);
|
|
10489
|
-
const ret = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.BracketLeftW), (0, combi_1.alt)(_1.Source, (0, combi_1.seq)((0, combi_1.optPrio)(key), (0, combi_1.opt)("COMPONENTS"), (0, combi_1.altPrio)(fields, index))), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WBracketRight), (0, combi_1.tok)(tokens_1.WBracketRightW)));
|
|
10489
|
+
const ret = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.BracketLeftW), (0, combi_1.alt)((0, combi_1.seq)(_1.Source, fields), _1.Source, (0, combi_1.seq)((0, combi_1.optPrio)(key), (0, combi_1.opt)("COMPONENTS"), (0, combi_1.altPrio)(fields, index))), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WBracketRight), (0, combi_1.tok)(tokens_1.WBracketRightW)));
|
|
10490
10490
|
return (0, combi_1.ver)(version_1.Release.v740sp02, ret, { also: combi_1.AlsoIn.OpenABAP });
|
|
10491
10491
|
}
|
|
10492
10492
|
}
|
|
@@ -27365,6 +27365,7 @@ class TypeUtils {
|
|
|
27365
27365
|
|| type instanceof basic_1.NumericType
|
|
27366
27366
|
|| type instanceof basic_1.DateType
|
|
27367
27367
|
|| type instanceof basic_1.TimeType
|
|
27368
|
+
|| type instanceof cgeneric_type_1.CGenericType
|
|
27368
27369
|
|| type instanceof basic_1.CLikeType
|
|
27369
27370
|
|| type instanceof basic_1.AnyType
|
|
27370
27371
|
|| type instanceof basic_1.UnknownType
|
|
@@ -41537,9 +41538,13 @@ class InsertInternal {
|
|
|
41537
41538
|
&& node.findDirectTokenByText("LINES") === undefined) {
|
|
41538
41539
|
targetType = targetType.getRowType();
|
|
41539
41540
|
}
|
|
41540
|
-
|
|
41541
|
-
|
|
41542
|
-
|
|
41541
|
+
const initial = node.findDirectTokenByText("INITIAL") !== undefined;
|
|
41542
|
+
let source;
|
|
41543
|
+
if (initial === false) {
|
|
41544
|
+
source = node.findDirectExpression(Expressions.SimpleSource4);
|
|
41545
|
+
if (source === undefined) {
|
|
41546
|
+
source = node.findDirectExpression(Expressions.Source);
|
|
41547
|
+
}
|
|
41543
41548
|
}
|
|
41544
41549
|
const sourceType = source ? source_1.Source.runSyntax(source, input, targetType) : targetType;
|
|
41545
41550
|
if (targetType === undefined
|
|
@@ -41561,7 +41566,7 @@ class InsertInternal {
|
|
|
41561
41566
|
fstarget_1.FSTarget.runSyntax(afterAssigning, input, sourceType);
|
|
41562
41567
|
}
|
|
41563
41568
|
}
|
|
41564
|
-
if (
|
|
41569
|
+
if (initial === false) {
|
|
41565
41570
|
let error = false;
|
|
41566
41571
|
if (sourceType instanceof basic_1.IntegerType && targetType instanceof basic_1.Integer8Type) {
|
|
41567
41572
|
error = true;
|
|
@@ -46714,6 +46719,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
46714
46719
|
exports.ClassData = void 0;
|
|
46715
46720
|
const Expressions = __importStar(__webpack_require__(/*! ../../2_statements/expressions */ "../core/build/src/abap/2_statements/expressions/index.js"));
|
|
46716
46721
|
const Statements = __importStar(__webpack_require__(/*! ../../2_statements/statements */ "../core/build/src/abap/2_statements/statements/index.js"));
|
|
46722
|
+
const Structures = __importStar(__webpack_require__(/*! ../../3_structures/structures */ "../core/build/src/abap/3_structures/structures/index.js"));
|
|
46717
46723
|
const nodes_1 = __webpack_require__(/*! ../../nodes */ "../core/build/src/abap/nodes/index.js");
|
|
46718
46724
|
const _typed_identifier_1 = __webpack_require__(/*! ../../types/_typed_identifier */ "../core/build/src/abap/types/_typed_identifier.js");
|
|
46719
46725
|
const Basic = __importStar(__webpack_require__(/*! ../../types/basic */ "../core/build/src/abap/types/basic/index.js"));
|
|
@@ -46732,7 +46738,14 @@ class ClassData {
|
|
|
46732
46738
|
values[found.getName()] = found.getValue();
|
|
46733
46739
|
}
|
|
46734
46740
|
}
|
|
46735
|
-
|
|
46741
|
+
else if (c instanceof nodes_1.StructureNode && ctyp instanceof Structures.ClassData) {
|
|
46742
|
+
const found = new ClassData().runSyntax(c, input);
|
|
46743
|
+
if (found) {
|
|
46744
|
+
components.push({ name: found.getName(), type: found.getType() });
|
|
46745
|
+
values[found.getName()] = found.getValue();
|
|
46746
|
+
}
|
|
46747
|
+
}
|
|
46748
|
+
// todo, INCLUDES
|
|
46736
46749
|
}
|
|
46737
46750
|
return new _typed_identifier_1.TypedIdentifier(name, input.filename, new Basic.StructureType(components), ["static" /* IdentifierMeta.Static */], values);
|
|
46738
46751
|
}
|
|
@@ -69437,7 +69450,7 @@ class Registry {
|
|
|
69437
69450
|
}
|
|
69438
69451
|
static abaplintVersion() {
|
|
69439
69452
|
// magic, see build script "version.js"
|
|
69440
|
-
return "2.120.
|
|
69453
|
+
return "2.120.16";
|
|
69441
69454
|
}
|
|
69442
69455
|
getDDICReferences() {
|
|
69443
69456
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.120.
|
|
3
|
+
"version": "2.120.16",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://abaplint.org",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@abaplint/core": "^2.120.
|
|
42
|
+
"@abaplint/core": "^2.120.16",
|
|
43
43
|
"@types/chai": "^4.3.20",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.10",
|