Expand description
Label definitions and reference uses — the data of the per-file
label/reference model: Vec-stored records addressed by newtype ids.
Structs§
- Citation
Ref - A citation use site — one per key. A
\cite{a,b}produces twoCitationRefs. Citations are always cross-file: cite keys live in.bibfiles, so there is no in-file resolution (noresolvedflag); theundefined-citationlint resolves them against the project’s bibliography viaproject::citations::ResolvedCitations(in thebadnesscrate). - Color
Def - A color-name definition site (
\definecolor{name}{model}{spec},\colorlet{name}{base}, …). The definition-side analog ofLabelDef, collected so color-name completion can offer document-defined colors alongside the built-in list; the reference side (\textcolor{name}{…}) is classified directly off the CST by completion and carries no stored record. - Glossary
Def - A glossary/acronym key definition site (
\newglossaryentry{key}{…},\newacronym[opts]{key}{short}{long}, …). The definition-side analog ofLabelDef; the reference side (\gls{key}) is classified directly off the CST by completion and carries no stored model record yet. - Label
Def - A label definition site: either
\label{key}or a curated environment’slabel=keyoption. - LabelId
- Index of a
LabelDefinSemanticModel::labels. - Label
Ref - A reference use site — one per key. A
\cref{a,b,c}produces threeLabelRefs, each carrying the same command kind and command range. - RefId
- Index of a
LabelRefinSemanticModel::refs.
Enums§
- Color
DefKind - Which definer command produced a
ColorDef. Kept distinct so a later hover/goto-def pass can render the definition appropriately (\definecolorcarries a model + spec;\colorletaliases an existing color). - Glossary
DefKind - Which definer command produced a
GlossaryDef. Kept distinct so a later hover/goto-def pass can render the entry appropriately (an acronym has short/long groups; an entry has a key=value settings group). - RefCommand
- Which reference-family command produced a
LabelRef. A small explicit table (the analog ofproject::IncludeKind) kept distinct so later passes can honor differences (\crefcapitalization,\namereftext, …).