@abaplint/cli 2.113.103 → 2.113.104

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 +21 -1
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -45412,8 +45412,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
45412
45412
  exports.Symbols = void 0;
45413
45413
  /* eslint-disable max-len */
45414
45414
  const LServer = __webpack_require__(/*! vscode-languageserver-types */ "./node_modules/vscode-languageserver-types/lib/umd/main.js");
45415
+ const _identifier_1 = __webpack_require__(/*! ../abap/4_file_information/_identifier */ "./node_modules/@abaplint/core/build/src/abap/4_file_information/_identifier.js");
45415
45416
  const _lsp_utils_1 = __webpack_require__(/*! ./_lsp_utils */ "./node_modules/@abaplint/core/build/src/lsp/_lsp_utils.js");
45416
45417
  const statements_1 = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
45418
+ const Statements = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
45419
+ const Expressions = __webpack_require__(/*! ../abap/2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
45417
45420
  class Symbols {
45418
45421
  constructor(reg) {
45419
45422
  this.reg = reg;
@@ -45426,6 +45429,7 @@ class Symbols {
45426
45429
  const ret = [];
45427
45430
  ret.push(...this.outputClasses(file));
45428
45431
  ret.push(...this.outputForms(file));
45432
+ ret.push(...this.outputModules(file));
45429
45433
  return ret;
45430
45434
  }
45431
45435
  selectionRange(identifier) {
@@ -45466,6 +45470,22 @@ class Symbols {
45466
45470
  }
45467
45471
  return ret;
45468
45472
  }
45473
+ outputModules(file) {
45474
+ var _a;
45475
+ const ret = [];
45476
+ for (const statement of file.getStatements()) {
45477
+ if (statement.get() instanceof Statements.Module) {
45478
+ const nameToken = (_a = statement.findFirstExpression(Expressions.FormName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
45479
+ if (nameToken === undefined) {
45480
+ continue;
45481
+ }
45482
+ const identifier = new _identifier_1.Identifier(nameToken, file.getFilename());
45483
+ const symbol = this.newSymbol(identifier, LServer.SymbolKind.Module, []);
45484
+ ret.push(symbol);
45485
+ }
45486
+ }
45487
+ return ret;
45488
+ }
45469
45489
  outputClasses(file) {
45470
45490
  const ret = [];
45471
45491
  for (const cla of file.getInfo().listClassDefinitions()) {
@@ -53830,7 +53850,7 @@ class Registry {
53830
53850
  }
53831
53851
  static abaplintVersion() {
53832
53852
  // magic, see build script "version.sh"
53833
- return "2.113.103";
53853
+ return "2.113.104";
53834
53854
  }
53835
53855
  getDDICReferences() {
53836
53856
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.103",
3
+ "version": "2.113.104",
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.103",
41
+ "@abaplint/core": "^2.113.104",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",