@abaplint/cli 2.113.17 → 2.113.19

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 +18 -9
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -1009,10 +1009,18 @@ async function run(arg) {
1009
1009
  if (config.get().global.files === undefined) {
1010
1010
  throw "Error: Update abaplint configuration file to latest format";
1011
1011
  }
1012
- const files = (arg.file)
1013
- ? file_operations_1.FileOperations.loadFileNames(base + arg.file)
1014
- : file_operations_1.FileOperations.loadFileNames(base + config.get().global.files);
1015
- loaded = await file_operations_1.FileOperations.loadFiles(arg.compress, files, progress);
1012
+ if (arg.file) {
1013
+ const files = file_operations_1.FileOperations.loadFileNames(base + arg.file);
1014
+ loaded = await file_operations_1.FileOperations.loadFiles(arg.compress, files, progress);
1015
+ }
1016
+ else {
1017
+ const configFiles = config.get().global.files;
1018
+ const filesList = Array.isArray(configFiles) ? configFiles : [configFiles];
1019
+ for (const l of filesList) {
1020
+ const files = file_operations_1.FileOperations.loadFileNames(base + l);
1021
+ loaded.push(...await file_operations_1.FileOperations.loadFiles(arg.compress, files, progress));
1022
+ }
1023
+ }
1016
1024
  deps = await loadDependencies(config, arg.compress, progress, base);
1017
1025
  reg = new core_1.Registry(config);
1018
1026
  reg.addDependencies(deps);
@@ -33395,7 +33403,7 @@ class Tables {
33395
33403
  }
33396
33404
  let name = nameToken.getStr();
33397
33405
  if (name.startsWith("*")) {
33398
- name = name.substr(1);
33406
+ name = name.substring(1);
33399
33407
  }
33400
33408
  // lookupTableOrView will also give Unknown and Void
33401
33409
  const found = (_b = input.scope.getDDIC()) === null || _b === void 0 ? void 0 : _b.lookupTableOrView(name);
@@ -33403,10 +33411,10 @@ class Tables {
33403
33411
  input.scope.getDDICReferences().addUsing(input.scope.getParentObj(), { object: found.object, filename: input.filename, token: nameToken });
33404
33412
  if (input.scope.getType() === _scope_type_1.ScopeType.Form || input.scope.getType() === _scope_type_1.ScopeType.FunctionModule) {
33405
33413
  // hoist TABLES definitions to global scope
33406
- input.scope.addNamedIdentifierToParent(nameToken.getStr(), new _typed_identifier_1.TypedIdentifier(nameToken, input.filename, found.type));
33414
+ input.scope.addNamedIdentifierToParent(nameToken.getStr(), new _typed_identifier_1.TypedIdentifier(nameToken, input.filename, found.type, ["tables" /* IdentifierMeta.Tables */]));
33407
33415
  }
33408
33416
  else {
33409
- input.scope.addIdentifier(new _typed_identifier_1.TypedIdentifier(nameToken, input.filename, found.type));
33417
+ input.scope.addIdentifier(new _typed_identifier_1.TypedIdentifier(nameToken, input.filename, found.type, ["tables" /* IdentifierMeta.Tables */]));
33410
33418
  }
33411
33419
  return;
33412
33420
  }
@@ -43922,7 +43930,8 @@ class InlayHints {
43922
43930
  findImplicitReferences(node) {
43923
43931
  const ret = [];
43924
43932
  for (const r of node.getData().references) {
43925
- if (r.referenceType === _reference_1.ReferenceType.InferredType) {
43933
+ if (r.referenceType === _reference_1.ReferenceType.InferredType ||
43934
+ r.referenceType === _reference_1.ReferenceType.DataWriteReference) {
43926
43935
  ret.push(r);
43927
43936
  }
43928
43937
  }
@@ -52747,7 +52756,7 @@ class Registry {
52747
52756
  }
52748
52757
  static abaplintVersion() {
52749
52758
  // magic, see build script "version.sh"
52750
- return "2.113.17";
52759
+ return "2.113.19";
52751
52760
  }
52752
52761
  getDDICReferences() {
52753
52762
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.17",
3
+ "version": "2.113.19",
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.17",
41
+ "@abaplint/core": "^2.113.19",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
@@ -47,7 +47,7 @@
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
49
  "chalk": "^5.3.0",
50
- "eslint": "^9.11.1",
50
+ "eslint": "^9.12.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
53
  "memfs": "^4.12.0",