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(semantic): add ancestor_kinds iterator function #7217

Commits on Nov 9, 2024

  1. refactor(semantic): add ancestor_kinds iterator function (#7217)

    for convenience, I've added a new function called `ancestor_kinds` which loops overall `ancestors` and gets their `AstKind`. this is a common pattern in a couple of places. I also did some somewhat related refactoring to remove places where we were manually calling `AstNode::kind` instead of using `ancestor_kinds` or calling `parent_kind`.
    camchenry committed Nov 9, 2024
    Configuration menu
    Copy the full SHA
    c5485ae View commit details
    Browse the repository at this point in the history