CdmNode.makeComment

CdmNode makeComment(string text, CdmComment.Style style, CdmLocation loc = CdmLocation.init) pure @safe

Creates a COMMENT node with the given text and style.

The comment text is stored in leadingComments.

Parameters

textComment text without delimiters.
styleComment syntax style.
locSource location.

Returns

A new CdmNode with type COMMENT.