dparse.trivia

Module to work with trivia tokens (comment, whitespace, specialTokenSequence) which are attached to tokens near them when source code gets tokenized.

Types 1

enumCommentType : ubyte
none
docLine
docBlock
normalLine
normalBlock

Functions 6

fnCommentType determineCommentType(string comment) pure nothrow @safe
fnbool isDocComment(CommentType type) @safe nothrow pure
fnvoid unDecorateComment(T)(string comment, auto ref T outputRange) if (isOutputRange!(T, string))Removes "decoration" such as leading whitespace, leading + and * characters, and places the result into the given output range
fnstring extractDdocFromTrivia(Tokens)(Tokens tokens) if (isInputRange!Tokens && (is(ElementType!Tokens : Token) || is(ElementType!Tokens : TriviaToken))) pure nothrow @safeExtracts and combines ddoc comments from trivia comments.
fnstring extractLeadingDdoc(const Token token) pure nothrow @safe
fnstring extractTrailingDdoc(const Token token) pure nothrow @safe