Current section
Files
Jump to
Current section
Files
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