()
| 136 | } |
| 137 | |
| 138 | func (it inputTokens) PartitionLeadComments() (before, within inputTokens) { |
| 139 | start := partitionLeadCommentTokens(it.nativeTokens) |
| 140 | before = it.Slice(0, start) |
| 141 | within = it.Slice(start, len(it.nativeTokens)) |
| 142 | return |
| 143 | } |
| 144 | |
| 145 | func (it inputTokens) PartitionLineEndTokens() (comments, newline, after inputTokens) { |
| 146 | afterComments, afterNewline := partitionLineEndTokens(it.nativeTokens) |
no test coverage detected