Skip to content

Commit fe0bb48

Browse files
committed
Correctly export node_to_symbolic from extension
1 parent f9af6ae commit fe0bb48

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ext/DynamicExpressionsSymbolicUtilsExt.jl

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

3+
export node_to_symbolic, symbolic_to_node
4+
5+
import Base: convert
36
using SymbolicUtils
47
if isdefined(Base, :get_extension)
58
import ..DynamicExpressions.EquationModule: Node, DEFAULT_NODE_TYPE
@@ -97,7 +100,7 @@ function findoperation(op, ops)
97100
throw(error("Operation $(op) in expression not found in operations $(ops)!"))
98101
end
99102

100-
function Base.convert(
103+
function convert(
101104
::typeof(SymbolicUtils.Symbolic),
102105
tree::Node,
103106
operators::AbstractOperatorEnum;
@@ -107,7 +110,7 @@ function Base.convert(
107110
return node_to_symbolic(tree, operators; varMap=varMap, index_functions=index_functions)
108111
end
109112

110-
function Base.convert(
113+
function convert(
111114
::typeof(Node),
112115
x::Number,
113116
operators::AbstractOperatorEnum;
@@ -116,7 +119,7 @@ function Base.convert(
116119
return Node(; val=DEFAULT_NODE_TYPE(x))
117120
end
118121

119-
function Base.convert(
122+
function convert(
120123
::typeof(Node),
121124
expr::SymbolicUtils.Symbolic,
122125
operators::AbstractOperatorEnum;

0 commit comments

Comments
 (0)