@@ -776,7 +776,7 @@ function ParentScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
776776 args = arguments (sym)
777777 a1 = setmetadata (args[1 ], SymScope,
778778 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 ]. .. ],
780780 symtype (sym), metadata (sym))
781781 else
782782 setmetadata (sym, SymScope,
@@ -795,7 +795,7 @@ function DelayParentScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}}, N)
795795 args = arguments (sym)
796796 a1 = setmetadata (args[1 ], SymScope,
797797 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 ]. .. ],
799799 symtype (sym), metadata (sym))
800800 else
801801 setmetadata (sym, SymScope,
@@ -811,7 +811,7 @@ function GlobalScope(sym::Union{Num, Symbolic, Symbolics.Arr{Num}})
811811 if iscall (sym) && operation (sym) == getindex
812812 args = arguments (sym)
813813 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 ]. .. ],
815815 symtype (sym), metadata (sym))
816816 else
817817 setmetadata (sym, SymScope, GlobalScope ())
@@ -829,13 +829,13 @@ function renamespace(sys, x)
829829 T = typeof (x)
830830 if iscall (x) && operation (x) isa Operator
831831 return maketerm (typeof (x), operation (x),
832- Any[renamespace (sys, only (arguments (x)))];
832+ Any[renamespace (sys, only (arguments (x)))],
833833 symtype (x), metadata (x)):: T
834834 end
835835 if iscall (x) && operation (x) === getindex
836836 args = arguments (x)
837837 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 ]),
839839 symtype (x), metadata (x)):: T
840840 end
841841 let scope = getmetadata (x, SymScope, LocalScope ())
@@ -914,8 +914,8 @@ function namespace_expr(
914914 # metadata from the rescoped variable
915915 rescoped = renamespace (n, O)
916916 maketerm (typeof (rescoped), operation (rescoped), renamed,
917- symtype (rescoped)
918- metadata = metadata (rescoped))
917+ symtype (rescoped),
918+ metadata (rescoped))
919919 elseif Symbolics. isarraysymbolic (O)
920920 # promote_symtype doesn't work for array symbolics
921921 maketerm (typeof (O), operation (O), renamed, symtype (O), metadata (O))
0 commit comments