@abaplint/cli 2.113.225 → 2.113.226

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 +36 -42
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -31853,6 +31853,38 @@ exports.FetchNextCursor = FetchNextCursor;
31853
31853
 
31854
31854
  /***/ }),
31855
31855
 
31856
+ /***/ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/field_group.js":
31857
+ /*!***************************************************************************************!*\
31858
+ !*** ./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/field_group.js ***!
31859
+ \***************************************************************************************/
31860
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
31861
+
31862
+ "use strict";
31863
+
31864
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
31865
+ exports.FieldGroup = void 0;
31866
+ const Expressions = __webpack_require__(/*! ../../2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
31867
+ const _typed_identifier_1 = __webpack_require__(/*! ../../types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
31868
+ const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
31869
+ class FieldGroup {
31870
+ runSyntax(node, input) {
31871
+ const nameExpression = node.findFirstExpression(Expressions.Field);
31872
+ if (nameExpression === undefined) {
31873
+ return;
31874
+ }
31875
+ const name = nameExpression === null || nameExpression === void 0 ? void 0 : nameExpression.concatTokens();
31876
+ if (name === undefined) {
31877
+ return;
31878
+ }
31879
+ const id = new _typed_identifier_1.TypedIdentifier(nameExpression === null || nameExpression === void 0 ? void 0 : nameExpression.getFirstToken(), input.filename, basic_1.VoidType.get("FIELD-GROUP"));
31880
+ input.scope.addIdentifier(id);
31881
+ }
31882
+ }
31883
+ exports.FieldGroup = FieldGroup;
31884
+ //# sourceMappingURL=field_group.js.map
31885
+
31886
+ /***/ }),
31887
+
31856
31888
  /***/ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/fieldsymbol.js":
31857
31889
  /*!***************************************************************************************!*\
31858
31890
  !*** ./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/fieldsymbol.js ***!
@@ -32434,7 +32466,7 @@ class IncludeType {
32434
32466
  else if (ityp instanceof basic_1.TableType && isStructure) {
32435
32467
  ityp = ityp.getRowType();
32436
32468
  }
32437
- else if (ityp instanceof basic_1.VoidType) {
32469
+ if (ityp instanceof basic_1.VoidType) {
32438
32470
  return ityp;
32439
32471
  }
32440
32472
  if (!(ityp instanceof basic_1.StructureType)) {
@@ -35480,46 +35512,6 @@ class Data {
35480
35512
  }
35481
35513
  else if (c instanceof nodes_1.StatementNode && ctyp instanceof Statements.IncludeType) {
35482
35514
  // INCLUDES
35483
- /*
35484
- const typeToken = c.findFirstExpression(Expressions.TypeName)?.getFirstToken();
35485
- const typeName = typeToken?.getStr();
35486
-
35487
- let foundId = input.scope.findType(typeName);
35488
- if (foundId === undefined) {
35489
- foundId = input.scope.findVariable(typeName);
35490
- }
35491
-
35492
- let found = foundId?.getType();
35493
- if (found === undefined) {
35494
- const f = input.scope.getDDIC().lookupTableOrView(typeName).type;
35495
- if (f instanceof TypedIdentifier) {
35496
- found = f.getType();
35497
- } else {
35498
- found = f;
35499
- }
35500
- } else {
35501
- input.scope.addReference(typeToken, foundId, ReferenceType.TypeReference, input.filename);
35502
- }
35503
- if (found instanceof Basic.VoidType) {
35504
- if (table === true) {
35505
- const ttyp = new Basic.TableType(found, {withHeader: true, keyType: Basic.TableKeyType.default});
35506
- return new TypedIdentifier(name, input.filename, ttyp);
35507
- } else {
35508
- return new TypedIdentifier(name, input.filename, found);
35509
- }
35510
- }
35511
- if (found instanceof Basic.UnknownType) {
35512
- return new TypedIdentifier(name, input.filename, new Basic.UnknownType("unknown type, " + typeName));
35513
- }
35514
- if (found instanceof Basic.TableType && found.isWithHeader()) {
35515
- found = found.getRowType();
35516
- }
35517
- if (!(found instanceof Basic.StructureType)) {
35518
- const message = "not structured, " + typeName;
35519
- input.issues.push(syntaxIssue(input, typeToken!, message));
35520
- return new TypedIdentifier(name, input.filename, Basic.VoidType.get(CheckSyntaxKey));
35521
- }
35522
- */
35523
35515
  const found = new include_type_1.IncludeType().runSyntax(c, input);
35524
35516
  if (found instanceof Basic.VoidType) {
35525
35517
  if (table === true) {
@@ -36003,6 +35995,7 @@ const modify_entities_1 = __webpack_require__(/*! ./statements/modify_entities *
36003
35995
  const commit_entities_1 = __webpack_require__(/*! ./statements/commit_entities */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/commit_entities.js");
36004
35996
  const _syntax_input_1 = __webpack_require__(/*! ./_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
36005
35997
  const assert_error_1 = __webpack_require__(/*! ./assert_error */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/assert_error.js");
35998
+ const field_group_1 = __webpack_require__(/*! ./statements/field_group */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/field_group.js");
36006
35999
  // -----------------------------------
36007
36000
  const map = {};
36008
36001
  function addToMap(handler) {
@@ -36133,6 +36126,7 @@ if (Object.keys(map).length === 0) {
36133
36126
  addToMap(new translate_1.Translate());
36134
36127
  addToMap(new modify_internal_1.ModifyInternal());
36135
36128
  addToMap(new read_textpool_1.ReadTextpool());
36129
+ addToMap(new field_group_1.FieldGroup());
36136
36130
  addToMap(new editor_call_1.EditorCall());
36137
36131
  addToMap(new delete_memory_1.DeleteMemory());
36138
36132
  }
@@ -54606,7 +54600,7 @@ class Registry {
54606
54600
  }
54607
54601
  static abaplintVersion() {
54608
54602
  // magic, see build script "version.sh"
54609
- return "2.113.225";
54603
+ return "2.113.226";
54610
54604
  }
54611
54605
  getDDICReferences() {
54612
54606
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.225",
3
+ "version": "2.113.226",
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.113.225",
41
+ "@abaplint/core": "^2.113.226",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",