* format a comment closer * the comment closer will be appended to the current formattedLine */
| 4851 | * the comment closer will be appended to the current formattedLine |
| 4852 | */ |
| 4853 | void ASFormatter::formatCommentCloser() |
| 4854 | { |
| 4855 | isInComment = false; |
| 4856 | noTrimCommentContinuation = false; |
| 4857 | isImmediatelyPostComment = true; |
| 4858 | appendSequence(AS_CLOSE_COMMENT); |
| 4859 | goForward(1); |
| 4860 | if (doesLineStartComment |
| 4861 | && (currentLine.find_first_not_of(" \t", charNum + 1) == string::npos)) |
| 4862 | lineEndsInCommentOnly = true; |
| 4863 | if (peekNextChar() == '}' |
| 4864 | && previousCommandChar != ';' |
| 4865 | && !isBracketType(bracketTypeStack->back(), ARRAY_TYPE) |
| 4866 | && !isInPreprocessor |
| 4867 | && isOkToBreakBlock(bracketTypeStack->back())) |
| 4868 | { |
| 4869 | isInLineBreak = true; |
| 4870 | shouldBreakLineAtNextChar = true; |
| 4871 | } |
| 4872 | } |
| 4873 | |
| 4874 | /** |
| 4875 | * format a line comment body |
nothing calls this directly
no outgoing calls
no test coverage detected