Current section

Files

Jump to
xberg lib xberg code_content_mode.ex
Raw

lib/xberg/code_content_mode.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.CodeContentMode do
@moduledoc """
Content rendering mode for code extraction.
Controls how extracted code content is represented in the `content` field
of `ExtractedDocument`.
"""
@typedoc "Content rendering mode for code extraction."
@type t :: :chunks | :raw | :structure
@chunks :chunks
@raw :raw
@structure :structure
@doc "Use TSLP semantic chunks as content (default)."
@spec chunks() :: t()
def chunks, do: @chunks
@doc "Use raw source code as content."
@spec raw() :: t()
def raw, do: @raw
@doc "Emit function/class headings + docstrings (no code bodies)."
@spec structure() :: t()
def structure, do: @structure
end