(trivia []TextRangeWithKind, parent *ast.Node, contextNode *ast.Node, dynamicIndentation *dynamicIndenter)
| 771 | } |
| 772 | |
| 773 | func (w *formatSpanWorker) processTrivia(trivia []TextRangeWithKind, parent *ast.Node, contextNode *ast.Node, dynamicIndentation *dynamicIndenter) { |
| 774 | for _, triviaItem := range trivia { |
| 775 | if isComment(triviaItem.Kind) && triviaItem.Loc.ContainedBy(w.originalRange) { |
| 776 | triviaItemStartLine, triviaItemStartCharacter := scanner.GetECMALineAndByteOffsetOfPosition(w.sourceFile, triviaItem.Loc.Pos()) |
| 777 | w.processRange(triviaItem, triviaItemStartLine, triviaItemStartCharacter, parent, contextNode, dynamicIndentation) |
| 778 | } |
| 779 | } |
| 780 | } |
| 781 | |
| 782 | /** |
| 783 | * Trimming will be done for lines after the previous range. |
no test coverage detected