Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/syntax_graph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ one or several syntax trees.

TODO: Global attributes!
"""
struct SyntaxGraph{Attrs}
mutable struct SyntaxGraph{Attrs}
edge_ranges::Vector{UnitRange{Int}}
edges::Vector{NodeId}
attributes::Attrs
Expand Down Expand Up @@ -632,7 +632,7 @@ end

#-------------------------------------------------------------------------------
# Lightweight vector of nodes ids with associated pointer to graph stored separately.
struct SyntaxList{GraphType, NodeIdVecType} <: AbstractVector{SyntaxTree}
mutable struct SyntaxList{GraphType, NodeIdVecType} <: AbstractVector{SyntaxTree}
graph::GraphType
ids::NodeIdVecType
end
Expand Down