sway_lsp::capabilities

Module document_symbol

Source

Structs§

DocumentSymbolBuilder
Builder for creating DocumentSymbol instances with method chaining. Initializes with empty name, NULL kind, and zero position ranges.

Functions§

to_document_symbols
Generates a hierarchical document symbol tree for LSP code outline/navigation. Processes declarations (functions, structs, enums, etc.) into nested symbols, preserving parent-child relationships like functions with their variables, structs with their fields, and traits with their methods.