Skip to content

Commit 5293e98

Browse files
committed
Add metadata_children function for accessing metadata tree
1 parent e9f4ff8 commit 5293e98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,10 @@ end
923923
metadata(s::Symbolic) = s.metadata
924924
metadata(s::Symbolic, meta) = Setfield.@set! s.metadata = meta
925925

926+
function metadata_children(s::BasicSymbolic)
927+
s.meta.children
928+
end
929+
926930
function hasmetadata(s::Symbolic, ctx)
927931
metadata(s) isa AbstractDict && haskey(metadata(s), ctx)
928932
end

0 commit comments

Comments
 (0)