Current section

Files

Jump to
xberg lib xberg code_chunk_info.ex
Raw

lib/xberg/code_chunk_info.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:926a121ce8858da89e1c2dae78836bd02775ed955b144da6ce043a83737b8c26
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule Xberg.CodeChunkInfo do
@moduledoc """
A single structurally-meaningful code chunk produced by tree-sitter parsing.
Purpose-built payload owned by xberg — deliberately does not expose the upstream
`tree_sitter_language_pack` types, so binding generators never need to resolve an
external crate's types across FFI/language boundaries.
"""
@typedoc "A single structurally-meaningful code chunk produced by tree-sitter parsing."
@type t :: %__MODULE__{
text: String.t() | nil,
context_path: [String.t()],
node_types: [String.t()],
byte_start: non_neg_integer(),
byte_end: non_neg_integer()
}
defstruct text: nil,
context_path: [],
node_types: [],
byte_start: 0,
byte_end: 0
end