@abaplint/cli 2.113.163 → 2.113.165

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 +17 -16
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -28324,27 +28324,24 @@ class Source {
28324
28324
  console.dir(inferredType);
28325
28325
  console.dir(typeToken);
28326
28326
  */
28327
- // hmm, need to align all this
28328
28327
  if (typeName === "#" && inferredType && typeToken) {
28329
28328
  const found = basic.lookupQualifiedName(inferredType.getQualifiedName());
28330
28329
  if (found) {
28331
- input.scope.addReference(typeToken, found, _reference_1.ReferenceType.InferredType, input.filename);
28332
- }
28333
- else if (inferredType instanceof basic_1.DataReference) {
28334
- const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
28335
- input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename);
28330
+ input.scope.addReference(typeToken, found, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: true });
28336
28331
  }
28337
28332
  else if (inferredType instanceof basic_1.ObjectReferenceType) {
28338
28333
  const def = input.scope.findObjectDefinition(inferredType.getQualifiedName());
28334
+ const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
28339
28335
  if (def) {
28340
- const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
28341
- input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename);
28336
+ input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: true });
28337
+ }
28338
+ else {
28339
+ input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: false });
28342
28340
  }
28343
28341
  }
28344
- else if (inferredType instanceof basic_1.CharacterType) {
28345
- // character is bit special it does not have a qualified name eg "TYPE c LENGTH 6"
28342
+ else {
28346
28343
  const tid = new _typed_identifier_1.TypedIdentifier(typeToken, input.filename, inferredType);
28347
- input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename);
28344
+ input.scope.addReference(typeToken, tid, _reference_1.ReferenceType.InferredType, input.filename, { foundQualified: false });
28348
28345
  }
28349
28346
  }
28350
28347
  }
@@ -54794,7 +54791,7 @@ class Registry {
54794
54791
  }
54795
54792
  static abaplintVersion() {
54796
54793
  // magic, see build script "version.sh"
54797
- return "2.113.163";
54794
+ return "2.113.165";
54798
54795
  }
54799
54796
  getDDICReferences() {
54800
54797
  return this.ddicReferences;
@@ -60727,7 +60724,7 @@ ${indentation}`);
60727
60724
  const fix = edit_helper_1.EditHelper.merge(fix2, fix1);
60728
60725
  return issue_1.Issue.atToken(lowFile, inlineData.getFirstToken(), "Outline SELECT @DATA", this.getMetadata().key, this.conf.severity, fix);
60729
60726
  }
60730
- // the anonymous type minght be used in inferred type statements, define it so it can be referred
60727
+ // the anonymous type might be used in inferred type statements, define it so it can be referred
60731
60728
  anonymousTableType(high, lowFile, highSyntax) {
60732
60729
  if (!(high.get() instanceof Statements.Data)) {
60733
60730
  return undefined;
@@ -61714,6 +61711,9 @@ ${indentation} output = ${uniqueName}.\n`;
61714
61711
  if (!(node.get() instanceof Statements.Loop)) {
61715
61712
  return undefined;
61716
61713
  }
61714
+ if (this.lowReg.getConfig().getVersion() === version_1.Version.OpenABAP) {
61715
+ return undefined;
61716
+ }
61717
61717
  const source = (_a = node.findDirectExpression(Expressions.LoopSource)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(Expressions.SimpleSource2);
61718
61718
  if (source === undefined) {
61719
61719
  return undefined;
@@ -62309,7 +62309,7 @@ ${indentation} output = ${uniqueName}.\n`;
62309
62309
  throw new SkipToNextFile(issue);
62310
62310
  }
62311
62311
  findType(i, lowFile, highSyntax, ref = false) {
62312
- var _a;
62312
+ var _a, _b;
62313
62313
  const expr = i.findDirectExpression(Expressions.TypeNameOrInfer);
62314
62314
  if (expr === undefined) {
62315
62315
  return undefined;
@@ -62328,7 +62328,8 @@ ${indentation} output = ${uniqueName}.\n`;
62328
62328
  if (r.referenceType === _reference_1.ReferenceType.InferredType
62329
62329
  && r.resolved
62330
62330
  && r.position.getStart().equals(firstToken.getStart())
62331
- && r.resolved instanceof _typed_identifier_1.TypedIdentifier) {
62331
+ && r.resolved instanceof _typed_identifier_1.TypedIdentifier
62332
+ && ((_a = r.extra) === null || _a === void 0 ? void 0 : _a.foundQualified) === true) {
62332
62333
  inferred = r.resolved;
62333
62334
  break;
62334
62335
  }
@@ -62340,7 +62341,7 @@ ${indentation} output = ${uniqueName}.\n`;
62340
62341
  return inferred.getType().toABAP();
62341
62342
  }
62342
62343
  else {
62343
- return (_a = inferred.getType().getQualifiedName()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
62344
+ return (_b = inferred.getType().getQualifiedName()) === null || _b === void 0 ? void 0 : _b.toLowerCase();
62344
62345
  }
62345
62346
  }
62346
62347
  outlineFS(low, high, lowFile, highSyntax) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.163",
3
+ "version": "2.113.165",
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.163",
41
+ "@abaplint/core": "^2.113.165",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",