Current section
Files
Jump to
Current section
Files
lib/emerge/engine/vnode.ex
defmodule Emerge.Engine.VNode do
@moduledoc """
Internal virtual node that keeps identity and keys for reconciliation.
"""
@type t :: %__MODULE__{
id: term(),
kind: atom(),
key: term() | nil,
attrs: map(),
children: [t()],
nearby: [{atom(), t()}]
}
defstruct [:id, :kind, :key, :attrs, children: [], nearby: []]
end