Skip to content

Commit 06ba024

Browse files
mlechuaviatesk
andcommitted
unfreeze_attrs: produce Dict{Symbol, Any} instead of Dict
Co-authored-by: Shuhei Kadowaki <[email protected]>
1 parent 356d61a commit 06ba024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/syntax_graph.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function freeze_attrs(graph::SyntaxGraph)
2323
end
2424

2525
function unfreeze_attrs(graph::SyntaxGraph)
26-
SyntaxGraph(graph.edge_ranges, graph.edges, Dict(pairs(graph.attributes)...))
26+
unfrozen_attrs = Dict{Symbol,Any}(pairs(graph.attributes)...)
27+
SyntaxGraph(graph.edge_ranges, graph.edges, unfrozen_attrs)
2728
end
2829

2930
function _show_attrs(io, attributes::Dict)

0 commit comments

Comments
 (0)