dparse.trivia

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

Members

Enums

CommentType
enum CommentType
Undocumented in source.

Functions

determineCommentType
CommentType determineCommentType(string comment)
Undocumented in source. Be warned that the author may not have intended to support it.
extractDdocFromTrivia
string extractDdocFromTrivia(Tokens tokens)

Extracts and combines ddoc comments from trivia comments.

extractLeadingDdoc
string extractLeadingDdoc(Token token)
Undocumented in source. Be warned that the author may not have intended to support it.
extractTrailingDdoc
string extractTrailingDdoc(Token token)
Undocumented in source. Be warned that the author may not have intended to support it.
isDocComment
bool isDocComment(CommentType type)
Undocumented in source. Be warned that the author may not have intended to support it.
unDecorateComment
void unDecorateComment(string comment, T outputRange)

Removes "decoration" such as leading whitespace, leading + and * characters, and places the result into the given output range

Meta