Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: track arrow function `this` capture in nested class methods and add Unikorn badge

3 months ago

9798d54
Authored
asta-nguyen8/11/2026, 8:43:46 AM
- Add `capturesClassThis` flag to SymbolAst to track whether arrow functions inherit class method `this` binding
- Rewrite `this.member` calls in arrow functions nested inside class methods (e.g., `Service.run.callback` → `Service.save`)
- Prevent rewriting when arrow is nested in a regular function that shadows class `this` (e.g., `Service.run.inner.callback` keeps `this.save` as-is)
- Add Unikorn ranking badge to README

Parentb57e952

3 files changed
  • README.md+1−0
  • packages/indexer/src/parsers/oxc-parser.ts+30−6
  • tests/oxc-parser.test.ts+57−0