We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8010da commit 3f30a23Copy full SHA for 3f30a23
src/Expression.jl
@@ -171,7 +171,7 @@ end
171
Create a new expression based on `ex` but with a different `metadata`.
172
"""
173
function with_metadata(ex::AbstractExpression; metadata...)
174
- return with_metadata(get_contents(ex), Metadata(metadata))
+ return with_metadata(ex, Metadata((; metadata...)))
175
end
176
function with_metadata(ex::AbstractExpression, metadata::Metadata)
177
return constructorof(typeof(ex))(get_contents(ex), metadata)
0 commit comments