Add :eph field to %TranslationUnit{} and remove :sibling_with

Using :eph from now on to store ephemeral data like :sibling_with. Additionally
added cleaning up :eph before saving to db. And renamed InternalTree.Basic
to InternalTree.RawInternalBasic to make clear that it contains function
for an intermediary tree structure.
This commit is contained in:
Thelonius Kort
2022-12-29 22:09:26 +01:00
parent fba40236d7
commit b48274eaef
7 changed files with 100 additions and 68 deletions

View File

@ -1,4 +1,4 @@
defmodule Outlook.InternalTree.InternalNode do
@derive Jason.Encoder
defstruct name: "", attributes: %{}, type: :atom, uuid: "", content: [], sibling_with: nil
defstruct name: "", attributes: %{}, type: :atom, uuid: "", content: [], eph: %{}
end