* Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between * each of `this.children`. * * @param aSep The separator.
(aSep)
| 256 | * @param aSep The separator. |
| 257 | */ |
| 258 | join(aSep) { |
| 259 | let newChildren; |
| 260 | let i; |
| 261 | const len = this.children.length; |
| 262 | if (len > 0) { |
| 263 | newChildren = []; |
| 264 | for (i = 0; i < len - 1; i++) { |
| 265 | newChildren.push(this.children[i]); |
| 266 | newChildren.push(aSep); |
| 267 | } |
| 268 | newChildren.push(this.children[i]); |
| 269 | this.children = newChildren; |
| 270 | } |
| 271 | return this; |
| 272 | } |
| 273 | |
| 274 | /** |
| 275 | * Call String.prototype.replace on the very right-most source snippet. Useful |
no outgoing calls
no test coverage detected