@abaplint/cli 2.113.241 → 2.113.242

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 +14 -13
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -29298,8 +29298,9 @@ class Target {
29298
29298
  currentIndex++;
29299
29299
  if (current.get() instanceof tokens_1.Dash) {
29300
29300
  if (context instanceof unknown_type_1.UnknownType) {
29301
- const message = "Not a structure, type unknown, target";
29302
- input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
29301
+ return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
29302
+ }
29303
+ else if (context instanceof basic_1.TableType && context.isWithHeader() && context.getRowType() instanceof unknown_type_1.UnknownType) {
29303
29304
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
29304
29305
  }
29305
29306
  else if (!(context instanceof basic_1.StructureType)
@@ -32619,27 +32620,27 @@ const basic_types_1 = __webpack_require__(/*! ../basic_types */ "./node_modules/
32619
32620
  const _typed_identifier_1 = __webpack_require__(/*! ../../types/_typed_identifier */ "./node_modules/@abaplint/core/build/src/abap/types/_typed_identifier.js");
32620
32621
  const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
32621
32622
  const assert_error_1 = __webpack_require__(/*! ../assert_error */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/assert_error.js");
32623
+ const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
32622
32624
  class IncludeType {
32623
32625
  runSyntax(node, input) {
32624
- var _a, _b, _c, _d, _e;
32626
+ var _a, _b;
32625
32627
  const components = [];
32626
32628
  const iname = node.findFirstExpression(Expressions.TypeName);
32627
32629
  if (iname === undefined) {
32628
32630
  throw new assert_error_1.AssertError("IncludeType, unexpected node structure");
32629
32631
  }
32630
- const name = iname.getFirstToken().getStr();
32632
+ const firstToken = iname.getFirstToken();
32633
+ const name = firstToken.getStr();
32631
32634
  const isStructure = node.findDirectTokenByText("STRUCTURE") !== undefined;
32632
32635
  let ityp = new basic_types_1.BasicTypes(input).parseType(iname);
32633
- if (ityp instanceof basic_1.VoidType && isStructure) {
32634
- const found = (_a = input.scope.findVariable(name)) === null || _a === void 0 ? void 0 : _a.getType();
32636
+ if ((ityp instanceof basic_1.VoidType && isStructure) || ityp instanceof basic_1.UnknownType) {
32637
+ const found = input.scope.findVariable(name);
32635
32638
  if (found) {
32636
- ityp = found;
32639
+ input.scope.addReference(firstToken, found, _reference_1.ReferenceType.DataReadReference, input.filename);
32640
+ ityp = found.getType();
32637
32641
  }
32638
32642
  }
32639
- else if (ityp instanceof basic_1.UnknownType) {
32640
- ityp = (_c = (_b = input.scope.findVariable(name)) === null || _b === void 0 ? void 0 : _b.getType()) !== null && _c !== void 0 ? _c : ityp;
32641
- }
32642
- const as = (_d = node.findExpressionAfterToken("AS")) === null || _d === void 0 ? void 0 : _d.concatTokens();
32643
+ const as = (_a = node.findExpressionAfterToken("AS")) === null || _a === void 0 ? void 0 : _a.concatTokens();
32643
32644
  if (as && ityp instanceof basic_1.StructureType) {
32644
32645
  ityp = new basic_1.StructureType(ityp.getComponents().concat([{
32645
32646
  name: as,
@@ -32661,7 +32662,7 @@ class IncludeType {
32661
32662
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, iname.getFirstToken(), message));
32662
32663
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
32663
32664
  }
32664
- const suffix = (_e = node.findExpressionAfterToken("SUFFIX")) === null || _e === void 0 ? void 0 : _e.concatTokens();
32665
+ const suffix = (_b = node.findExpressionAfterToken("SUFFIX")) === null || _b === void 0 ? void 0 : _b.concatTokens();
32665
32666
  if (suffix && ityp instanceof basic_1.StructureType) {
32666
32667
  const components = [];
32667
32668
  for (const c of ityp.getComponents()) {
@@ -54883,7 +54884,7 @@ class Registry {
54883
54884
  }
54884
54885
  static abaplintVersion() {
54885
54886
  // magic, see build script "version.sh"
54886
- return "2.113.241";
54887
+ return "2.113.242";
54887
54888
  }
54888
54889
  getDDICReferences() {
54889
54890
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.241",
3
+ "version": "2.113.242",
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.241",
41
+ "@abaplint/core": "^2.113.242",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",