mrdocs::buildSymbolDom

Build the DOM value for a single symbol.

Synopsis

Declared in <mrdocs/Metadata/DomCorpus.hpp>

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

NameDescription
symThe symbol to project.