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.
FrozenNode
with_max_degree
1 parent 1d61192 commit 24b4ed0Copy full SHA for 24b4ed0
test/test_extra_node_fields.jl
@@ -27,6 +27,9 @@ function DynamicExpressions.with_type_parameters(
27
) where {T,N<:FrozenNode}
28
return FrozenNode{T,max_degree(N)}
29
end
30
+function DynamicExpressions.with_max_degree(::Type{N}, ::Val{D}) where {T,N<:FrozenNode{T}}
31
+ return FrozenNode{T,D}
32
+end
33
function DynamicExpressions.leaf_copy(t::FrozenNode{T}) where {T}
34
out = if t.constant
35
constructorof(typeof(t))(; val=t.val)
0 commit comments