+ "message": "feat(code-action): convert arrow function to closure\n\nAdd a refactor.rewrite code action that converts arrow functions to\nanonymous closures: `fn($x) => $x * 2` becomes\n`function($x) { return $x * 2; }`.\n\nVariables from the outer scope used in the expression are automatically\ndetected and captured via a `use()` clause. `$this` is excluded since\nclosures bind it automatically (unless static). Nested arrow functions\nare handled by extending the parameter exclusion set.\n\nPreserves:\n- static keyword\n- Return type hints\n- Parameter type hints\n\nIncludes 10 unit tests covering: simple expressions, type hints,\nstatic arrows, single/multiple variable capture, $this exclusion,\nparameter exclusion, method calls with captures, and deduplication.\n\nCloses #148\n\nSigned-off-by: Anders Jenbo <anders@jenbo.dk>",
0 commit comments