Skip to content

Commit 831f8fc

Browse files
committed
Add isequal method for MetadataImpl
1 parent 580ad33 commit 831f8fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/types.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ function Base.isequal(a::BasicSymbolicImpl{T}, b::BasicSymbolicImpl{S}) where {T
303303
T === S || return false
304304
return _isequal(a, b, E)::Bool
305305
end
306+
function Base.isequal(a::MetadataImpl, b::MetadataImpl)
307+
(a === b) ||
308+
(isequal_with_metadata(a.this, b.this) &&
309+
isequal_with_metadata(a.children, b.children))
310+
end
311+
306312
function _isequal(a, b, E; comparator = isequal)
307313
if E === SYM
308314
nameof(a) === nameof(b)

0 commit comments

Comments
 (0)