mrdocs::buildSymbolDom

Build the DOM value for a single symbol.

Synopsis

dom::Value
buildSymbolDom(Symbol const& sym);

Description

Visits the symbol's polymorphic kind and returns a read‐only reflection proxy for the concrete derived type: the same per‐symbol object that corpus.symbols yields. A caller that wants to walk the corpus one symbol at a time (for example a generator serializing each symbol) uses this instead of reaching into the shape of buildCorpusDom.

Return Value

A DOM value proxying the symbol.

Parameters

Name

Description

sym

The symbol to project.

Created with MrDocs