how to travel inner functions ( a type of node inside another type of node)
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 194
- Avg merge
- 22h 43m
- Merged PRs (30d)
- 10
Description
I would like to replace the first `n(0)` and `n(1)`, but there is another `n(0)` in the inner function where the `n` is not same with the first `n`.
So how could I diff them?
```
function a(e, t, n) {
var x = n(0); // // there is an n
function d(e) {
var n = c(e); // there is another n
return n && t && n(0);
}
var y = n(1); // this is the first n too.
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No file, test, or entry point is identified. Start by examining how the project represents nested JavaScript function nodes and how traversal distinguishes bindings in the issue's example. Done means the two outer `n` references can be distinguished from the inner `n` binding, with behavior demonstrated by a focused test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100