Bash.AST.Meta (Bash v0.3.0)

Copy Markdown View Source

Source location metadata attached to every AST node. Used for error reporting, debugging, and execution tracking.

Fields

Source Location

  • line - Line number in source (1-indexed)
  • column - Column number in source (1-indexed)
  • source_range - Character range in source (optional)

Evaluation Tracking (nil before execution)

  • evaluated - true if node was executed, false if skipped, nil if not yet run
  • duration_ms - Execution time in milliseconds
  • started_at - DateTime when execution started
  • completed_at - DateTime when execution completed

Summary

Types

t()

@type t() :: %Bash.AST.Meta{
  column: pos_integer(),
  completed_at: DateTime.t() | nil,
  duration_ms: non_neg_integer() | nil,
  evaluated: boolean() | nil,
  line: pos_integer(),
  source_range: Range.t() | nil,
  started_at: DateTime.t() | nil
}