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:4e21c71a5751b345136e5ca51dea30bbd3862f7fdc63aa50e6b36be84c454e0e
# 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