ddn.data.cdm.comment

CDM comment preservation.

This module provides the CdmComment struct for preserving comments from source files during parsing, enabling roundtrip fidelity.

struct CdmComment

Types 1

A preserved comment from source.

CdmComment stores both the parsed comment text and the original formatting, allowing faithful reproduction when writing back.

Examples

auto cmt = CdmComment("Configuration", CdmComment.Style.DOUBLE_SLASH);
assert(cmt.text == "Configuration");
assert(cmt.style == CdmComment.Style.DOUBLE_SLASH);
Fields
string text
Style style
CdmLocation location
string rawText
Methods
string toString() const pure @safeReturns a human-readable string representation of this comment.
Nested Templates
StyleComment syntax style.