Skip to content

Commit db30dc8

Browse files
Create MetadataImpl struct to keep track of metadata tree
Co-authored-by: Aayush Sabharwal <aayush.sabharwal@gmail.com>
1 parent df49641 commit db30dc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/types.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,14 @@ const ENABLE_HASHCONSING = Ref(true)
6363
end
6464
end
6565

66+
struct MetadataImpl
67+
this::Metadata
68+
children::Vector{Any}
69+
end
70+
6671
@kwdef struct BasicSymbolic{T} <: Symbolic{T}
6772
expr::BasicSymbolicImpl{T}
68-
metadata::Metadata = NO_METADATA
73+
meta::MetadataImpl
6974
end
7075

7176
function SymbolicIndexingInterface.symbolic_type(::Type{<:BasicSymbolic})

0 commit comments

Comments
 (0)