Skip to content

Commit

Permalink
core: replace manual uniplate impls with derive macro
Browse files Browse the repository at this point in the history
Replace the manual implementation of the Uniplate and Biplate traits for
the AST with the derive macro.

Adding uniplate_derive to the ast broke is_enum_variant, therefore this
commit also removes and replaces all invocations of is_xxx() functions
with let..else or pattern matching.

Signed-off-by: Niklas Dewally <niklas@dewally.com>
  • Loading branch information
niklasdewally committed Sep 19, 2024
1 parent ce43062 commit 9d11fa6
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 168 deletions.
155 changes: 30 additions & 125 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9d11fa6

Please sign in to comment.