@abaplint/transpiler-cli 2.11.34 → 2.11.35

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/bundle.js +1 -1
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -87982,7 +87982,7 @@ class SetHandlerTranspiler {
87982
87982
  for (const m of node.findDirectExpressions(abaplint.Expressions.MethodSource)) {
87983
87983
  methods.push(new expressions_1.MethodSourceTranspiler().transpile(m, traversal).getCode().replace("await ", "") + ".bind(this)");
87984
87984
  if (eventClass === undefined) {
87985
- const nameToken = m.getFirstToken();
87985
+ const nameToken = m.getLastToken();
87986
87986
  const scope = traversal.findCurrentScopeByToken(nameToken);
87987
87987
  const method = traversal.findMethodReference(nameToken, scope);
87988
87988
  if (method?.def.isEventHandler() !== true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.34",
3
+ "version": "2.11.35",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.176",
31
- "@abaplint/transpiler": "^2.11.34",
31
+ "@abaplint/transpiler": "^2.11.35",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.3.0",
34
34
  "@types/progress": "^2.0.7",