CdmNode.makeComment
CdmNode makeComment(string text, CdmComment.Style style,
CdmLocation loc = CdmLocation.init) pure @safeCreates a COMMENT node with the given text and style.
The comment text is stored in leadingComments.
Parameters
text | Comment text without delimiters. |
style | Comment syntax style. |
loc | Source location. |
Returns
A new CdmNode with type COMMENT.