@abaplint/core 2.118.1 → 2.118.2

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.
@@ -6,7 +6,9 @@ const _syntax_input_1 = require("../_syntax_input");
6
6
  class DatabaseTable {
7
7
  static runSyntax(node, input) {
8
8
  const token = node.getFirstToken();
9
- const name = token.getStr();
9
+ const rawName = token.getStr();
10
+ const starPrefixed = rawName.startsWith("*");
11
+ const name = starPrefixed ? rawName.substring(1) : rawName;
10
12
  if (name === "(") {
11
13
  // dynamic
12
14
  return undefined;
@@ -38,6 +38,7 @@ class FieldChain {
38
38
  let context = undefined;
39
39
  const children = node.getChildren();
40
40
  context = this.findTop(children[0], input, refType);
41
+ let prev = children[0].concatTokens();
41
42
  for (let i = 1; i < children.length; i++) {
42
43
  const current = children[i];
43
44
  if (current === undefined) {
@@ -78,7 +79,7 @@ class FieldChain {
78
79
  }
79
80
  }
80
81
  else {
81
- const message = "Not a structure, FieldChain, " + (context === null || context === void 0 ? void 0 : context.constructor.name) + ", " + current.concatTokens();
82
+ const message = prev.toUpperCase() + " is not structured (" + (context === null || context === void 0 ? void 0 : context.constructor.name) + ")";
82
83
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, current.getFirstToken(), message));
83
84
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
84
85
  }
@@ -145,6 +146,7 @@ class FieldChain {
145
146
  }
146
147
  }
147
148
  }
149
+ prev = current.concatTokens();
148
150
  }
149
151
  return context;
150
152
  }
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.118.1";
77
+ return "2.118.2";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
@@ -96,12 +96,12 @@ https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#abap-doc-on
96
96
  issues.push(issue);
97
97
  }
98
98
  if (rowText.trim().match(regexEmptyAbapdoc) === null && previousRowsTexts.indexOf(rowText) === previousRowsTexts.length - 1) {
99
- const message = "Missing ABAP Doc for method " + method.identifier.getToken().getStr() + " (" + rowText + ")";
99
+ const message = "Missing ABAP Doc for method " + method.identifier.getToken().getStr();
100
100
  const issue = issue_1.Issue.atIdentifier(method.identifier, message, this.getMetadata().key, this.conf.severity);
101
101
  issues.push(issue);
102
102
  }
103
103
  if (rowText.trim().match(regexEmptyParameterName) !== null) {
104
- const message = "Missing ABAP Doc parameter name for method " + method.identifier.getToken().getStr() + " (" + rowText + ")";
104
+ const message = "Missing ABAP Doc parameter name for method " + method.identifier.getToken().getStr();
105
105
  const issue = issue_1.Issue.atIdentifier(method.identifier, message, this.getMetadata().key, this.conf.severity);
106
106
  issues.push(issue);
107
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.118.1",
3
+ "version": "2.118.2",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",