@abaplint/cli 2.113.244 → 2.113.245

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 +11 -4
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -24204,7 +24204,6 @@ class BasicTypes {
24204
24204
  return undefined;
24205
24205
  }
24206
24206
  resolveLikeName(node, headerLogic = true) {
24207
- var _a;
24208
24207
  if (node === undefined) {
24209
24208
  return undefined;
24210
24209
  }
@@ -24250,7 +24249,12 @@ class BasicTypes {
24250
24249
  this.input.scope.addReference(chain === null || chain === void 0 ? void 0 : chain.getFirstToken(), found, _reference_1.ReferenceType.TypeReference, this.input.filename);
24251
24250
  }
24252
24251
  if (type === undefined) {
24253
- type = (_a = this.input.scope.getDDIC().lookupNoVoid(name)) === null || _a === void 0 ? void 0 : _a.type;
24252
+ const found = this.input.scope.getDDIC().lookupNoVoid(name);
24253
+ if (found !== undefined) {
24254
+ const using = { filename: this.input.filename, token: chain.getFirstToken(), object: found.object };
24255
+ this.input.scope.getDDICReferences().addUsing(this.input.scope.getParentObj(), using);
24256
+ }
24257
+ type = found === null || found === void 0 ? void 0 : found.type;
24254
24258
  }
24255
24259
  if (type === undefined && this.input.scope.isAnyOO() === false && this.input.scope.getDDIC().inErrorNamespace(name) === false) {
24256
24260
  this.input.scope.addReference(chain.getChildren()[0].getFirstToken(), undefined, _reference_1.ReferenceType.VoidType, this.input.filename);
@@ -28948,7 +28952,7 @@ class SQLForAllEntries {
28948
28952
  }
28949
28953
  if (s) {
28950
28954
  const type = source_1.Source.runSyntax(s, input);
28951
- if (type instanceof basic_1.VoidType) {
28955
+ if (type instanceof basic_1.VoidType || type instanceof basic_1.UnknownType) {
28952
28956
  return;
28953
28957
  }
28954
28958
  if (!(type instanceof basic_1.TableType)) {
@@ -34066,6 +34070,9 @@ class ReadTable {
34066
34070
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
34067
34071
  return;
34068
34072
  }
34073
+ else if (sourceType instanceof basic_1.UnknownType) {
34074
+ // do nothing, ok
34075
+ }
34069
34076
  else if (!(sourceType instanceof basic_1.TableType) && !(sourceType instanceof basic_1.VoidType)) {
34070
34077
  const message = "Read table, not a table type";
34071
34078
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
@@ -54889,7 +54896,7 @@ class Registry {
54889
54896
  }
54890
54897
  static abaplintVersion() {
54891
54898
  // magic, see build script "version.sh"
54892
- return "2.113.244";
54899
+ return "2.113.245";
54893
54900
  }
54894
54901
  getDDICReferences() {
54895
54902
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.244",
3
+ "version": "2.113.245",
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.244",
41
+ "@abaplint/core": "^2.113.245",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",