@abaplint/cli 2.103.3 → 2.103.4

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 +35 -29
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -4730,7 +4730,7 @@ class DataDefinition extends combi_1.Expression {
4730
4730
  getRunnable() {
4731
4731
  const simple = (0, combi_1.opt)((0, combi_1.per)("READ-ONLY", Expressions.Type, Expressions.Length, Expressions.Decimals, Expressions.Value));
4732
4732
  const table = (0, combi_1.seq)(Expressions.TypeTable, (0, combi_1.optPrio)("READ-ONLY"));
4733
- return (0, combi_1.seq)(Expressions.DefinitionName, (0, combi_1.optPrio)(Expressions.ConstantFieldLength), (0, combi_1.alt)(simple, table, Expressions.TypeHierarchy));
4733
+ return (0, combi_1.seq)(Expressions.DefinitionName, (0, combi_1.optPrio)(Expressions.ConstantFieldLength), (0, combi_1.alt)(simple, table, Expressions.TypeStructure));
4734
4734
  }
4735
4735
  }
4736
4736
  exports.DataDefinition = DataDefinition;
@@ -5859,7 +5859,7 @@ __exportStar(__webpack_require__(/*! ./string_template_formatting */ "./node_mod
5859
5859
  __exportStar(__webpack_require__(/*! ./string_template_source */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/string_template_source.js"), exports);
5860
5860
  __exportStar(__webpack_require__(/*! ./string_template */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/string_template.js"), exports);
5861
5861
  __exportStar(__webpack_require__(/*! ./super_class_name */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/super_class_name.js"), exports);
5862
- __exportStar(__webpack_require__(/*! ./type_hierarchy */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_hierarchy.js"), exports);
5862
+ __exportStar(__webpack_require__(/*! ./type_structure */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_structure.js"), exports);
5863
5863
  __exportStar(__webpack_require__(/*! ./switch_body */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/switch_body.js"), exports);
5864
5864
  __exportStar(__webpack_require__(/*! ./table_body */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/table_body.js"), exports);
5865
5865
  __exportStar(__webpack_require__(/*! ./table_expression */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/table_expression.js"), exports);
@@ -9068,30 +9068,6 @@ exports.Type = Type;
9068
9068
 
9069
9069
  /***/ }),
9070
9070
 
9071
- /***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_hierarchy.js":
9072
- /*!***********************************************************************************************!*\
9073
- !*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_hierarchy.js ***!
9074
- \***********************************************************************************************/
9075
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
9076
-
9077
- "use strict";
9078
-
9079
- Object.defineProperty(exports, "__esModule", ({ value: true }));
9080
- exports.TypeHierarchy = void 0;
9081
- const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
9082
- const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
9083
- class TypeHierarchy extends combi_1.Expression {
9084
- getRunnable() {
9085
- // todo, add version,
9086
- const hier = (0, combi_1.seq)("TYPE STRUCTURE FOR HIERARCHY", _1.NamespaceSimpleName);
9087
- return hier;
9088
- }
9089
- }
9090
- exports.TypeHierarchy = TypeHierarchy;
9091
- //# sourceMappingURL=type_hierarchy.js.map
9092
-
9093
- /***/ }),
9094
-
9095
9071
  /***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_name.js":
9096
9072
  /*!******************************************************************************************!*\
9097
9073
  !*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_name.js ***!
@@ -9167,6 +9143,31 @@ exports.TypeParam = TypeParam;
9167
9143
 
9168
9144
  /***/ }),
9169
9145
 
9146
+ /***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_structure.js":
9147
+ /*!***********************************************************************************************!*\
9148
+ !*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_structure.js ***!
9149
+ \***********************************************************************************************/
9150
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
9151
+
9152
+ "use strict";
9153
+
9154
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
9155
+ exports.TypeStructure = void 0;
9156
+ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
9157
+ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
9158
+ class TypeStructure extends combi_1.Expression {
9159
+ getRunnable() {
9160
+ // todo, add version,
9161
+ const hier = (0, combi_1.seq)("HIERARCHY", _1.NamespaceSimpleName);
9162
+ const evt = (0, combi_1.seq)("EVENT", _1.EventName);
9163
+ return (0, combi_1.seq)("TYPE STRUCTURE FOR", (0, combi_1.altPrio)(hier, evt));
9164
+ }
9165
+ }
9166
+ exports.TypeStructure = TypeStructure;
9167
+ //# sourceMappingURL=type_structure.js.map
9168
+
9169
+ /***/ }),
9170
+
9170
9171
  /***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_table.js":
9171
9172
  /*!*******************************************************************************************!*\
9172
9173
  !*** ./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/type_table.js ***!
@@ -17225,7 +17226,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
17225
17226
  class Type {
17226
17227
  getMatcher() {
17227
17228
  const simple = (0, combi_1.per)(Expressions.Type, Expressions.Decimals, Expressions.Length);
17228
- const def = (0, combi_1.seq)(Expressions.NamespaceSimpleName, (0, combi_1.opt)(Expressions.ConstantFieldLength), (0, combi_1.opt)((0, combi_1.alt)(simple, Expressions.TypeTable, Expressions.TypeHierarchy)));
17229
+ const def = (0, combi_1.seq)(Expressions.NamespaceSimpleName, (0, combi_1.opt)(Expressions.ConstantFieldLength), (0, combi_1.opt)((0, combi_1.alt)(simple, Expressions.TypeTable, Expressions.TypeStructure)));
17229
17230
  // todo, BOXED is only allowed with structures inside structures?
17230
17231
  const boxed = (0, combi_1.ver)(version_1.Version.v702, "BOXED");
17231
17232
  const ret = (0, combi_1.seq)("TYPES", def, (0, combi_1.opt)(boxed));
@@ -24316,6 +24317,11 @@ class DataDefinition {
24316
24317
  if (valueNode) {
24317
24318
  value = new basic_types_1.BasicTypes(filename, scope).findValue(node);
24318
24319
  }
24320
+ const name = node.findFirstExpression(Expressions.DefinitionName);
24321
+ const typeStructure = node.findFirstExpression(Expressions.TypeStructure);
24322
+ if (typeStructure && name) {
24323
+ return new _typed_identifier_1.TypedIdentifier(name.getFirstToken(), filename, new basic_1.VoidType("DataDefinition, TypeStructure"));
24324
+ }
24319
24325
  const bfound = new basic_types_1.BasicTypes(filename, scope).simpleType(node);
24320
24326
  if (bfound) {
24321
24327
  if (value) {
@@ -24325,8 +24331,8 @@ class DataDefinition {
24325
24331
  return bfound;
24326
24332
  }
24327
24333
  }
24328
- const name = node.findFirstExpression(Expressions.DefinitionName);
24329
24334
  if (name) {
24335
+ console.dir("undef");
24330
24336
  return new _typed_identifier_1.TypedIdentifier(name.getFirstToken(), filename, new basic_1.UnknownType("DataDefinition, fallback"));
24331
24337
  }
24332
24338
  return undefined;
@@ -50880,7 +50886,7 @@ class Registry {
50880
50886
  }
50881
50887
  static abaplintVersion() {
50882
50888
  // magic, see build script "version.sh"
50883
- return "2.103.2";
50889
+ return "2.103.4";
50884
50890
  }
50885
50891
  getDDICReferences() {
50886
50892
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.103.3",
3
+ "version": "2.103.4",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.103.2",
41
+ "@abaplint/core": "^2.103.4",
42
42
  "@types/chai": "^4.3.9",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.5",