NewFromNextSegment returns a new dispenser with a copy of the tokens from the current token until the end of the "directive" whether that be to the end of the line or the end of a block that starts at the end of the line; in other words, until the end of the segment.
()
| 349 | // the end of a block that starts at the end of the line; |
| 350 | // in other words, until the end of the segment. |
| 351 | func (d *Dispenser) NewFromNextSegment() *Dispenser { |
| 352 | return NewDispenser(d.NextSegment()) |
| 353 | } |
| 354 | |
| 355 | // NextSegment returns a copy of the tokens from the current |
| 356 | // token until the end of the line or block that starts at |
no test coverage detected