()
| 143 | } |
| 144 | |
| 145 | func (it inputTokens) PartitionLineEndTokens() (comments, newline, after inputTokens) { |
| 146 | afterComments, afterNewline := partitionLineEndTokens(it.nativeTokens) |
| 147 | comments = it.Slice(0, afterComments) |
| 148 | newline = it.Slice(afterComments, afterNewline) |
| 149 | after = it.Slice(afterNewline, len(it.nativeTokens)) |
| 150 | return |
| 151 | } |
| 152 | |
| 153 | func (it inputTokens) Slice(start, end int) inputTokens { |
| 154 | // When we slice, we create a new slice with no additional capacity because |
no test coverage detected