Minga.Language.Symbol (Minga v0.1.0)

Copy Markdown View Source

A document symbol extracted from a tree-sitter tags.scm query.

Symbols are flat parser facts: name, kind, and source range. Presentation layers can derive hierarchy from range containment when they need breadcrumbs or outlines.

Summary

Types

Symbol kind normalized from @definition.* captures.

Zero-based source range {start_row, start_col, end_row, end_col}.

t()

Types

kind()

@type kind() :: :function | :module | :method | :interface | :test

Symbol kind normalized from @definition.* captures.

range()

Zero-based source range {start_row, start_col, end_row, end_col}.

t()

@type t() :: %Minga.Language.Symbol{kind: kind(), name: String.t(), range: range()}