@@ -776,7 +776,7 @@ function ParentScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
776
776
args = arguments (sym)
777
777
a1 = setmetadata (args[1 ], SymScope,
778
778
ParentScope (getmetadata (value (args[1 ]), SymScope, LocalScope ())))
779
- maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ];
779
+ maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ],
780
780
symtype (sym), metadata (sym))
781
781
else
782
782
setmetadata (sym, SymScope,
@@ -795,7 +795,7 @@ function DelayParentScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}}, N)
795
795
args = arguments (sym)
796
796
a1 = setmetadata (args[1 ], SymScope,
797
797
DelayParentScope (getmetadata (value (args[1 ]), SymScope, LocalScope ()), N))
798
- maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ];
798
+ maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ],
799
799
symtype (sym), metadata (sym))
800
800
else
801
801
setmetadata (sym, SymScope,
@@ -811,7 +811,7 @@ function GlobalScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
811
811
if iscall (sym) && operation (sym) == getindex
812
812
args = arguments (sym)
813
813
a1 = setmetadata (args[1 ], SymScope, GlobalScope ())
814
- maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ];
814
+ maketerm (typeof (sym), operation (sym), [a1, args[2 : end ]. .. ],
815
815
symtype (sym), metadata (sym))
816
816
else
817
817
setmetadata (sym, SymScope, GlobalScope ())
@@ -829,13 +829,13 @@ function renamespace(sys, x)
829
829
T = typeof (x)
830
830
if iscall (x) && operation (x) isa Operator
831
831
return maketerm (typeof (x), operation (x),
832
- Any[renamespace (sys, only (arguments (x)))];
832
+ Any[renamespace (sys, only (arguments (x)))],
833
833
symtype (x), metadata (x)):: T
834
834
end
835
835
if iscall (x) && operation (x) === getindex
836
836
args = arguments (x)
837
837
return maketerm (
838
- typeof (x), operation (x), vcat (renamespace (sys, args[1 ]), args[2 : end ]);
838
+ typeof (x), operation (x), vcat (renamespace (sys, args[1 ]), args[2 : end ]),
839
839
symtype (x), metadata (x)):: T
840
840
end
841
841
let scope = getmetadata (x, SymScope, LocalScope ())
@@ -914,8 +914,8 @@ function namespace_expr(
914
914
# metadata from the rescoped variable
915
915
rescoped = renamespace (n, O)
916
916
maketerm (typeof (rescoped), operation (rescoped), renamed,
917
- symtype (rescoped)
918
- metadata = metadata (rescoped))
917
+ symtype (rescoped),
918
+ metadata (rescoped))
919
919
elseif Symbolics. isarraysymbolic (O)
920
920
# promote_symtype doesn't work for array symbolics
921
921
maketerm (typeof (O), operation (O), renamed, symtype (O), metadata (O))
0 commit comments