@abaplint/core 2.113.11 → 2.113.12

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.
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.11";
70
+ return "2.113.12";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
@@ -63,6 +63,7 @@ class UnusedMethods {
63
63
  extendedInformation: `Checks private and protected methods.
64
64
 
65
65
  Unused methods are not reported if the object contains parser or syntax errors.
66
+ Quick fixes only appears for private methods.
66
67
 
67
68
  Skips:
68
69
  * methods FOR TESTING
@@ -154,12 +155,14 @@ Skips:
154
155
  else if (this.suppressedbyPseudo(statement, file)) {
155
156
  continue;
156
157
  }
157
- const implementation = this.findMethodImplementation(i, file);
158
158
  let fix = undefined;
159
- if (implementation !== undefined) {
160
- const fix1 = edit_helper_1.EditHelper.deleteStatement(file, statement);
161
- const fix2 = edit_helper_1.EditHelper.deleteRange(file, implementation.getFirstToken().getStart(), implementation.getLastToken().getEnd());
162
- fix = edit_helper_1.EditHelper.merge(fix1, fix2);
159
+ if (i.visibility === visibility_1.Visibility.Private) {
160
+ const implementation = this.findMethodImplementation(i, file);
161
+ if (implementation !== undefined) {
162
+ const fix1 = edit_helper_1.EditHelper.deleteStatement(file, statement);
163
+ const fix2 = edit_helper_1.EditHelper.deleteRange(file, implementation.getFirstToken().getStart(), implementation.getLastToken().getEnd());
164
+ fix = edit_helper_1.EditHelper.merge(fix1, fix2);
165
+ }
163
166
  }
164
167
  const message = "Method \"" + i.identifier.getName() + "\" not used";
165
168
  issues.push(issue_1.Issue.atIdentifier(i.identifier, message, this.getMetadata().key, this.conf.severity, fix));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.11",
3
+ "version": "2.113.12",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",