File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ struct MTKParameterCtx end
4
4
function isparameter (x)
5
5
x = unwrap (x)
6
6
7
+ if x isa Symbolic && (isp = getmetadata (x, MTKParameterCtx, nothing )) != = nothing
8
+ return isp
7
9
# TODO : Delete this branch
8
- if x isa Symbolic && Symbolics. getparent (x, false ) != = false
10
+ elseif x isa Symbolic && Symbolics. getparent (x, false ) != = false
9
11
p = Symbolics. getparent (x)
10
12
isparameter (p) ||
11
13
(hasmetadata (p, Symbolics. VariableSource) &&
Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ struct Stream <: AbstractConnectType end # special stream connector
20
20
21
21
isvarkind (m, x:: Num ) = isvarkind (m, value (x))
22
22
function isvarkind (m, x)
23
- p = getparent (x, nothing )
24
- p === nothing || (x = p)
23
+ iskind = getmetadata (x, m, nothing )
24
+ iskind != = nothing && return iskind
25
+ x = getparent (x, x)
25
26
getmetadata (x, m, false )
26
27
end
27
28
You can’t perform that action at this time.
0 commit comments