Packages

Transform SwiftUI code into LiveViewNative templates

Current section

Files

Jump to
swiftui_2_lvn lib swiftui_2_lvn ast_node.ex
Raw

lib/swiftui_2_lvn/ast_node.ex

defmodule Swiftui2Lvn.AstNode do
@moduledoc """
Represents a node in the Swift AST.
This module defines the structure for AST nodes that are parsed from Swift code.
"""
defstruct [:id, :text, :type, children: []]
@type t :: %__MODULE__{
id: String.t() | nil,
text: String.t() | nil,
type: String.t() | nil,
children: [t()]
}
end