Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ast): incorrect visit order in function (#3681)
```ts function hello<T>(a: T): T { return 0 as T } ``` The `T` is a type parameter. It can be used in `FormalParameters`, `ReturnType`, and `FunctionBody`. Therefore we need to visit `type_parameters` before visiting `FormalParameters`, `ReturnType`, and `FunctionBody`
- Loading branch information