Expand description
Declaration counting across a project.
loc reports how much code exists. This module reports what is declared in
it: functions, types, enums, and constants per language, driven by
Tree-sitter grammars rather than pattern matching.
Structs§
- Language
Symbols - Declaration totals for one language.
- Symbol
Analyzer - Counts declarations across a project tree.
- Symbol
Detail - Per-declaration detail, produced on request rather than by default.
- Symbol
Entry - A single declaration, as listed by
SymbolDetail. - Symbol
Report - Aggregate symbol counts across a project.
Enums§
- Symbol
Kind - The categories of declaration the counter distinguishes.
- Symbol
Match - The outcome of resolving a name against a
SymbolDetail.
Functions§
- ambiguity_
message - Explain an ambiguous name by listing what it matched.
- collect_
symbol_ ranges - Build a focus-path list plus line ranges for several names.
- pick_
unique - Choose the single declaration for
name, or explain why it cannot be chosen. - range_
of - The inclusive line span a declaration occupies.