@abaplint/cli 2.113.128 → 2.113.129

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.
Files changed (2) hide show
  1. package/build/cli.js +54 -17
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -4375,7 +4375,7 @@ class Color extends combi_1.Expression {
4375
4375
  const eq = (0, combi_1.seq)("=", source_1.Source);
4376
4376
  const integers = (0, combi_1.altPrio)("1", "2", "3", "4", "5", "6", "7");
4377
4377
  const texts = (0, combi_1.altPrio)("COL_BACKGROUND", "COL_HEADING", "COL_NORMAL", "COL_TOTAL", "COL_KEY", "COL_POSITIVE", "COL_NEGATIVE", "COL_GROUP");
4378
- const value = (0, combi_1.alt)(eq, (0, combi_1.altPrio)("ON", "OFF", (0, combi_1.altPrio)(integers, texts)));
4378
+ const value = (0, combi_1.alt)(eq, (0, combi_1.altPrio)("ON", "OFF", "COLOR OFF", (0, combi_1.altPrio)(integers, texts)));
4379
4379
  const toggle = (0, combi_1.altPrio)("ON", "OFF");
4380
4380
  return (0, combi_1.seq)("COLOR", (0, combi_1.opt)((0, combi_1.seq)(value, (0, combi_1.opt)(toggle))));
4381
4381
  }
@@ -11819,8 +11819,8 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
11819
11819
  class DataBegin {
11820
11820
  getMatcher() {
11821
11821
  const occurs = (0, combi_1.seq)("OCCURS", expressions_1.Integer);
11822
- const common = (0, combi_1.altPrio)((0, combi_1.seq)("COMMON PART", expressions_1.DefinitionName), "COMMON PART");
11823
- const structure = (0, combi_1.seq)("BEGIN OF", (0, combi_1.altPrio)(common, (0, combi_1.seq)(expressions_1.DefinitionName, (0, combi_1.opt)("READ-ONLY"), (0, combi_1.opt)(occurs))));
11822
+ const common = (0, combi_1.seq)("COMMON PART", (0, combi_1.optPrio)(expressions_1.DefinitionName));
11823
+ const structure = (0, combi_1.seq)("BEGIN OF", (0, combi_1.altPrio)(common, (0, combi_1.seq)(expressions_1.DefinitionName, (0, combi_1.optPrio)("READ-ONLY"), (0, combi_1.optPrio)(occurs))));
11824
11824
  return (0, combi_1.seq)("DATA", structure);
11825
11825
  }
11826
11826
  }
@@ -19343,7 +19343,7 @@ const Structures = __webpack_require__(/*! ./ */ "./node_modules/@abaplint/core/
19343
19343
  const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
19344
19344
  class DynproLogic {
19345
19345
  getMatcher() {
19346
- return (0, _combi_1.seq)((0, _combi_1.sub)(Structures.ProcessBeforeOutput), (0, _combi_1.sub)(Structures.ProcessAfterInput), (0, _combi_1.opt)((0, _combi_1.sub)(Structures.ProcessOnValueRequest)), (0, _combi_1.opt)((0, _combi_1.sub)(Structures.ProcessOnHelpRequest)));
19346
+ return (0, _combi_1.seq)((0, _combi_1.sub)(Structures.ProcessBeforeOutput), (0, _combi_1.sub)(Structures.ProcessAfterInput), (0, _combi_1.opt)((0, _combi_1.sub)(Structures.ProcessOnHelpRequest)), (0, _combi_1.opt)((0, _combi_1.sub)(Structures.ProcessOnValueRequest)), (0, _combi_1.opt)((0, _combi_1.sub)(Structures.ProcessOnHelpRequest)));
19347
19347
  }
19348
19348
  }
19349
19349
  exports.DynproLogic = DynproLogic;
@@ -34902,18 +34902,26 @@ exports.Constants = Constants;
34902
34902
 
34903
34903
  Object.defineProperty(exports, "__esModule", ({ value: true }));
34904
34904
  exports.Data = void 0;
34905
- const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
34906
- const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
34907
- const Structures = __webpack_require__(/*! ../../3_structures/structures */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/index.js");
34905
+ const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
34906
+ const data_1 = __webpack_require__(/*! ../statements/data */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/data.js");
34907
+ const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
34908
34908
  const nodes_1 = __webpack_require__(/*! ../../nodes */ "./node_modules/@abaplint/core/build/src/abap/nodes/index.js");
34909
+ const type_1 = __webpack_require__(/*! ../statements/type */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/type.js");
34909
34910
  const _typed_identifier_1 = __webpack_require__(/*! ../../types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
34911
+ const types_1 = __webpack_require__(/*! ./types */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/types.js");
34910
34912
  const Basic = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
34911
- const data_1 = __webpack_require__(/*! ../statements/data */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/data.js");
34912
- const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
34913
- const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
34913
+ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
34914
+ const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
34915
+ const Structures = __webpack_require__(/*! ../../3_structures/structures */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/index.js");
34914
34916
  class Data {
34915
- runSyntax(node, input) {
34916
- var _a;
34917
+ static runSyntax(node, input) {
34918
+ var _a, _b;
34919
+ const fouth = (_a = node.getFirstChild()) === null || _a === void 0 ? void 0 : _a.getChildren()[3];
34920
+ const isCommonPart = fouth instanceof nodes_1.TokenNode && fouth.concatTokens() === "COMMON";
34921
+ if (isCommonPart) {
34922
+ this.runCommonPartSyntax(node, input);
34923
+ return undefined;
34924
+ }
34917
34925
  const name = node.findFirstExpression(Expressions.DefinitionName).getFirstToken();
34918
34926
  let table = false;
34919
34927
  const values = {};
@@ -34930,7 +34938,7 @@ class Data {
34930
34938
  }
34931
34939
  }
34932
34940
  else if (c instanceof nodes_1.StructureNode && ctyp instanceof Structures.Data) {
34933
- const found = new Data().runSyntax(c, input);
34941
+ const found = Data.runSyntax(c, input);
34934
34942
  if (found) {
34935
34943
  components.push({ name: found.getName(), type: found.getType() });
34936
34944
  }
@@ -34942,7 +34950,7 @@ class Data {
34942
34950
  }
34943
34951
  else if (c instanceof nodes_1.StatementNode && ctyp instanceof Statements.IncludeType) {
34944
34952
  // INCLUDES
34945
- const typeToken = (_a = c.findFirstExpression(Expressions.TypeName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
34953
+ const typeToken = (_b = c.findFirstExpression(Expressions.TypeName)) === null || _b === void 0 ? void 0 : _b.getFirstToken();
34946
34954
  const typeName = typeToken === null || typeToken === void 0 ? void 0 : typeToken.getStr();
34947
34955
  let foundId = input.scope.findType(typeName);
34948
34956
  if (foundId === undefined) {
@@ -34994,6 +35002,35 @@ class Data {
34994
35002
  return new _typed_identifier_1.TypedIdentifier(name, input.filename, new Basic.StructureType(components), undefined, val);
34995
35003
  }
34996
35004
  }
35005
+ static runCommonPartSyntax(node, input) {
35006
+ for (const c of node.getChildren()) {
35007
+ const ctyp = c.get();
35008
+ if (c instanceof nodes_1.StatementNode && ctyp instanceof Statements.Data) {
35009
+ const found = new data_1.Data().runSyntax(c, input);
35010
+ if (found) {
35011
+ input.scope.addIdentifier(found);
35012
+ }
35013
+ }
35014
+ else if (c instanceof nodes_1.StructureNode && ctyp instanceof Structures.Data) {
35015
+ const found = Data.runSyntax(c, input);
35016
+ if (found) {
35017
+ input.scope.addIdentifier(found);
35018
+ }
35019
+ }
35020
+ else if (c instanceof nodes_1.StatementNode && ctyp instanceof Statements.Type) {
35021
+ const found = new type_1.Type().runSyntax(c, input);
35022
+ if (found) {
35023
+ input.scope.addIdentifier(found);
35024
+ }
35025
+ }
35026
+ else if (c instanceof nodes_1.StructureNode && ctyp instanceof Structures.Types) {
35027
+ const found = new types_1.Types().runSyntax(c, input);
35028
+ if (found) {
35029
+ input.scope.addIdentifier(found);
35030
+ }
35031
+ }
35032
+ }
35033
+ }
34997
35034
  }
34998
35035
  exports.Data = Data;
34999
35036
  //# sourceMappingURL=data.js.map
@@ -35675,7 +35712,7 @@ class SyntaxLogic {
35675
35712
  return true;
35676
35713
  }
35677
35714
  else if (stru instanceof Structures.Data) {
35678
- this.scope.addIdentifier(new data_1.Data().runSyntax(node, input));
35715
+ this.scope.addIdentifier(data_1.Data.runSyntax(node, input));
35679
35716
  return true;
35680
35717
  }
35681
35718
  else if (stru instanceof Structures.Statics) {
@@ -39254,7 +39291,7 @@ class Attributes {
39254
39291
  const ctyp = c.get();
39255
39292
  if (c instanceof nodes_1.StructureNode) {
39256
39293
  if (ctyp instanceof Structures.Data) {
39257
- const found = new data_2.Data().runSyntax(c, input);
39294
+ const found = data_2.Data.runSyntax(c, input);
39258
39295
  if (found !== undefined) {
39259
39296
  const attr = new class_attribute_1.ClassAttribute(found, visibility, found.getMeta(), found.getValue());
39260
39297
  this.instance.push(attr);
@@ -54317,7 +54354,7 @@ class Registry {
54317
54354
  }
54318
54355
  static abaplintVersion() {
54319
54356
  // magic, see build script "version.sh"
54320
- return "2.113.128";
54357
+ return "2.113.129";
54321
54358
  }
54322
54359
  getDDICReferences() {
54323
54360
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.128",
3
+ "version": "2.113.129",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.128",
41
+ "@abaplint/core": "^2.113.129",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",
45
- "@types/node": "^24.0.1",
45
+ "@types/node": "^24.0.3",
46
46
  "@types/progress": "^2.0.7",
47
47
  "chai": "^4.5.0",
48
48
  "p-limit": "^3.1.0",