@abaplint/cli 2.110.6 → 2.110.8

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 +13 -5
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -4084,7 +4084,7 @@ exports.AttributeName = void 0;
4084
4084
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
4085
4085
  class AttributeName extends combi_1.Expression {
4086
4086
  getRunnable() {
4087
- return (0, combi_1.regex)(/^(\/\w+\/)?[\w\d_\*\~%]+$/);
4087
+ return (0, combi_1.regex)(/^(\/\w+\/)?(?!\*)[\w\d_\*\~%]+$/);
4088
4088
  }
4089
4089
  }
4090
4090
  exports.AttributeName = AttributeName;
@@ -7703,7 +7703,8 @@ class Source extends combi_1.Expression {
7703
7703
  getRunnable() {
7704
7704
  const comp = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), _1.ComponentChain);
7705
7705
  const attr = (0, combi_1.seq)(_1.Arrow, attribute_chain_1.AttributeChain);
7706
- const method = (0, combi_1.seq)(_1.MethodCallChain, (0, combi_1.optPrio)((0, combi_1.altPrio)(attr, comp)), (0, combi_1.optPrio)(dereference_1.Dereference));
7706
+ const deref = (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Version.v756, dereference_1.Dereference));
7707
+ const method = (0, combi_1.seq)(_1.MethodCallChain, (0, combi_1.optPrio)((0, combi_1.altPrio)(attr, comp)), deref);
7707
7708
  const rparen = (0, combi_1.tok)(tokens_1.WParenRightW);
7708
7709
  const rparenNoSpace = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenRightW), (0, combi_1.tok)(tokens_1.WParenRightW));
7709
7710
  // paren used for eg. "( 2 + 1 ) * 4"
@@ -7711,7 +7712,7 @@ class Source extends combi_1.Expression {
7711
7712
  const after = (0, combi_1.seq)((0, combi_1.altPrio)("&", "&&", _1.ArithOperator), Source);
7712
7713
  const bool = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.ver)(version_1.Version.v702, (0, combi_1.regex)(/^BOOLC$/i)), (0, combi_1.ver)(version_1.Version.v740sp08, (0, combi_1.regex)(/^XSDBOOL$/i))), (0, combi_1.tok)(tokens_1.ParenLeftW), _1.Cond, ")");
7713
7714
  const prefix = (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WPlus), "BIT-NOT");
7714
- const old = (0, combi_1.seq)((0, combi_1.optPrio)(prefix), (0, combi_1.altPrio)(_1.Constant, _1.StringTemplate, text_element_1.TextElement, bool, method, (0, combi_1.seq)(_1.FieldChain, (0, combi_1.optPrio)(dereference_1.Dereference)), paren), (0, combi_1.optPrio)(after));
7715
+ const old = (0, combi_1.seq)((0, combi_1.optPrio)(prefix), (0, combi_1.altPrio)(_1.Constant, _1.StringTemplate, text_element_1.TextElement, bool, method, (0, combi_1.seq)(_1.FieldChain, deref), paren), (0, combi_1.optPrio)(after));
7715
7716
  const corr = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CORRESPONDING", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.CorrespondingBody, rparen, (0, combi_1.optPrio)(after)));
7716
7717
  const conv = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("CONV", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.ConvBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
7717
7718
  const swit = (0, combi_1.ver)(version_1.Version.v740sp02, (0, combi_1.seq)("SWITCH", _1.TypeNameOrInfer, (0, combi_1.tok)(tokens_1.ParenLeftW), _1.SwitchBody, rparenNoSpace, (0, combi_1.optPrio)(after)));
@@ -33408,7 +33409,10 @@ class Data {
33408
33409
  // INCLUDES
33409
33410
  const typeToken = (_a = c.findFirstExpression(Expressions.TypeName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
33410
33411
  const typeName = typeToken === null || typeToken === void 0 ? void 0 : typeToken.getStr();
33411
- const foundId = scope.findType(typeName);
33412
+ let foundId = scope.findType(typeName);
33413
+ if (foundId === undefined) {
33414
+ foundId = scope.findVariable(typeName);
33415
+ }
33412
33416
  let found = foundId === null || foundId === void 0 ? void 0 : foundId.getType();
33413
33417
  if (found === undefined) {
33414
33418
  const f = scope.getDDIC().lookupTableOrView(typeName).type;
@@ -51784,7 +51788,7 @@ class Registry {
51784
51788
  }
51785
51789
  static abaplintVersion() {
51786
51790
  // magic, see build script "version.sh"
51787
- return "2.110.6";
51791
+ return "2.110.8";
51788
51792
  }
51789
51793
  getDDICReferences() {
51790
51794
  return this.ddicReferences;
@@ -64039,6 +64043,10 @@ class MacroNaming extends _abap_rule_1.ABAPRule {
64039
64043
  shortDescription: `Allows you to enforce a pattern for macro definitions`,
64040
64044
  extendedInformation: `Use rule "avoid_use" to avoid macros alotogether.`,
64041
64045
  tags: [_irule_1.RuleTag.Naming, _irule_1.RuleTag.SingleFile],
64046
+ badExample: `DEFINE something.
64047
+ END-OF-DEFINITION.`,
64048
+ goodExample: `DEFINE _something.
64049
+ END-OF-DEFINITION.`,
64042
64050
  };
64043
64051
  }
64044
64052
  getConfig() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.110.6",
3
+ "version": "2.110.8",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.110.6",
41
+ "@abaplint/core": "^2.110.8",
42
42
  "@types/chai": "^4.3.16",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.7",
46
- "@types/node": "^20.14.9",
46
+ "@types/node": "^20.14.10",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",
@@ -55,7 +55,7 @@
55
55
  "mocha": "^10.6.0",
56
56
  "progress": "^2.0.3",
57
57
  "typescript": "^5.5.3",
58
- "webpack": "^5.92.1",
58
+ "webpack": "^5.93.0",
59
59
  "webpack-cli": "^5.1.4",
60
60
  "xml-js": "^1.6.11"
61
61
  },