Module dparse.trivia
Module to work with trivia tokens (comment, whitespace,
specialTokenSequence) which are attached to tokens near them when source
code gets tokenized.
Functions
| Name | Description |
|---|---|
determineCommentType(comment)
|
|
extractDdocFromTrivia(tokens)
|
Extracts and combines ddoc comments from trivia comments. |
extractLeadingDdoc(token)
|
|
extractTrailingDdoc(token)
|
|
isDocComment(type)
|
|
unDecorateComment(comment, outputRange)
|
Removes "decoration" such as leading whitespace, leading + and * characters, and places the result into the given output range |
Enums
| Name | Description |
|---|---|
CommentType
|