Skip to content

Commit

Permalink
fix similarterm for macrocall Exprs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro committed Nov 4, 2021
1 parent 2afe1e3 commit 7c280d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TermInterface"
uuid = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"
authors = ["Shashi Gowda <[email protected]>", "Alessandro Cheli <[email protected]>"]
version = "0.2.1"
version = "0.2.2"

[compat]
julia = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ function similarterm(x::Type{Expr}, head, args, symtype=nothing; metadata=nothin
end

expr_similarterm(head, args, ::Val{:call}) = Expr(:call, head, args...)
expr_similarterm(head, args, ::Val{:macrocall}) = Expr(:call, head, args...) # discard linenumbernodes?
expr_similarterm(head, args, ::Val{:macrocall}) = Expr(:macrocall, head, args...) # discard linenumbernodes?
expr_similarterm(head, args, ::Val{eh}) where {eh} = Expr(eh, args...)

0 comments on commit 7c280d0

Please sign in to comment.