Skip to content

Commit ed3e497

Browse files
committed
fix: declare instability in constructorof
1 parent 248df8e commit ed3e497

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Node.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module NodeModule
22

3+
using DispatchDoctor: @unstable
4+
35
import ..OperatorEnumModule: AbstractOperatorEnum
46
import ..UtilsModule: @memoize_on, @with_memoize, deprecate_varmap, Undefined
57

@@ -182,9 +184,9 @@ end
182184
Base.eltype(::Type{<:AbstractExpressionNode{T}}) where {T} = T
183185
Base.eltype(::AbstractExpressionNode{T}) where {T} = T
184186

185-
constructorof(::Type{N}) where {N<:AbstractNode} = Base.typename(N).wrapper
186-
constructorof(::Type{<:Node}) = Node
187-
constructorof(::Type{<:GraphNode}) = GraphNode
187+
@unstable constructorof(::Type{N}) where {N<:AbstractNode} = Base.typename(N).wrapper
188+
@unstable constructorof(::Type{<:Node}) = Node
189+
@unstable constructorof(::Type{<:GraphNode}) = GraphNode
188190

189191
function with_type_parameters(::Type{N}, ::Type{T}) where {N<:AbstractExpressionNode,T}
190192
return constructorof(N){T}

0 commit comments

Comments
 (0)