@abaplint/transpiler 2.10.29 → 2.10.30

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.
@@ -24,7 +24,8 @@ class MethodCallTranspiler {
24
24
  name = m.name.toLowerCase() + "(";
25
25
  }
26
26
  if (feature_flags_1.FEATURE_FLAGS.private === true
27
- && m?.def.getVisibility() === core_1.Visibility.Private) {
27
+ && m?.def.getVisibility() === core_1.Visibility.Private
28
+ && m?.def.isStatic() === false) {
28
29
  name = "#" + name;
29
30
  }
30
31
  const step = node.findDirectExpression(core_1.Expressions.MethodCallParam);
@@ -120,7 +120,8 @@ class MethodImplementationTranspiler {
120
120
  // https://github.com/tc39/proposal-class-fields
121
121
  let isPrivate = "";
122
122
  if (feature_flags_1.FEATURE_FLAGS.private === true
123
- && method?.getVisibility() === abaplint.Visibility.Private) {
123
+ && method?.getVisibility() === abaplint.Visibility.Private
124
+ && method.isStatic() === false) {
124
125
  isPrivate = "#";
125
126
  }
126
127
  if (method && method.isStatic()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.10.29",
3
+ "version": "2.10.30",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",