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

add visit and visit_mut APIs #261

Merged
merged 4 commits into from
Nov 25, 2021
Merged

add visit and visit_mut APIs #261

merged 4 commits into from
Nov 25, 2021

Commits on Nov 24, 2021

  1. fix: remove trailing commas and whitespace from formatted arrays

    A formatted array is all in one line, so it shouldn't have trailing
    commas or whitespace.
    sunshowers committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    b5a2818 View commit details
    Browse the repository at this point in the history
  2. feat: add a visit_mut API

    This is modeled after the `syn::visit_mut` API.
    
    Also include a nontrivial example for custom formatting.
    sunshowers committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    bc43f74 View commit details
    Browse the repository at this point in the history
  3. feat: add a visit API

    Similar to the visit_mut API, this allows walking over the document
    tree.
    
    I think overall this is probably less useful than `visit_mut`, but is
    still worth implementing for completeness.
    sunshowers committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    c9702ec View commit details
    Browse the repository at this point in the history
  4. ci: run tests for all targets

    The previous commits added some tests to the `visit` example -- ensure
    that they're run in CI.
    sunshowers committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    d1a1db8 View commit details
    Browse the repository at this point in the history