@abaplint/transpiler 2.11.34 → 2.11.36

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.
@@ -3,6 +3,6 @@ import { IOutputFile, ITranspilerOptions } from "../types";
3
3
  export declare class HandleFUGR {
4
4
  private readonly options;
5
5
  constructor(options?: ITranspilerOptions);
6
- static shouldSkip(obj: abaplint.ABAPObject, reg: abaplint.IRegistry): any;
6
+ static shouldSkip(obj: abaplint.ABAPObject, reg: abaplint.IRegistry): boolean;
7
7
  runObject(obj: abaplint.ABAPObject, reg: abaplint.IRegistry): IOutputFile[];
8
8
  }
@@ -12,7 +12,7 @@ class SetHandlerTranspiler {
12
12
  for (const m of node.findDirectExpressions(abaplint.Expressions.MethodSource)) {
13
13
  methods.push(new expressions_1.MethodSourceTranspiler().transpile(m, traversal).getCode().replace("await ", "") + ".bind(this)");
14
14
  if (eventClass === undefined) {
15
- const nameToken = m.getFirstToken();
15
+ const nameToken = m.getLastToken();
16
16
  const scope = traversal.findCurrentScopeByToken(nameToken);
17
17
  const method = traversal.findMethodReference(nameToken, scope);
18
18
  if (method?.def.isEventHandler() !== true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.11.34",
3
+ "version": "2.11.36",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@abaplint/core": "^2.113.176",
32
+ "@abaplint/core": "^2.113.178",
33
33
  "source-map": "^0.7.6"
34
34
  },
35
35
  "devDependencies": {