Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ast): improve Walk with latest go/ast.Walk #2169

Merged
merged 1 commit into from
Mar 11, 2025
Merged

Conversation

aofei
Copy link
Member

@aofei aofei commented Mar 11, 2025

  • Replaced multiple type-specific walkXList helper funcs with a single generic walkList[N Node] func.
  • Added TypeParams handling for FuncType and TypeSpec.
  • Improved nil-safety with additional checks.

- Replaced multiple type-specific `walkXList` helper funcs with a single
  generic `walkList[N Node]` func.
- Added `TypeParams` handling for `FuncType` and `TypeSpec`.
- Improved nil-safety with additional checks.

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@xushiwei xushiwei merged commit 9461e7c into goplus:main Mar 11, 2025
14 checks passed
@aofei aofei deleted the ast branch March 12, 2025 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants