File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,24 @@ function Base.getproperty(x::BasicSymbolic, sym::Symbol)
97
97
return getfield (x, :meta ). this
98
98
elseif sym === :expr || sym === :meta
99
99
return getfield (x, sym)
100
+ elseif sym === :base || sym === :num
101
+ bsi = getproperty (getfield (x, :expr ), sym)
102
+ if bsi isa BasicSymbolicImpl
103
+ mdi = getfield (x, :meta ). children[1 ]
104
+ return BasicSymbolic (bsi, mdi)
105
+ else
106
+ return bsi
107
+ end
108
+ elseif sym === :exp || sym === :den
109
+ bsi = getproperty (getfield (x, :expr ), sym)
110
+ if bsi isa BasicSymbolicImpl
111
+ mdi = getfield (x, :meta ). children[2 ]
112
+ return BasicSymbolic (bsi, mdi)
113
+ else
114
+ return bsi
115
+ end
100
116
else
101
- return getproperty (x . expr, sym)
117
+ return getproperty (getfield (x, : expr) , sym)
102
118
end
103
119
end
104
120
You can’t perform that action at this time.
0 commit comments