RemainingArgsAsTokens loads any more arguments (tokens on the same line) into a slice of Token-structs and returns them. Open curly brace tokens also indicate the end of arguments, and the curly brace is not included in the return value nor is it loaded.
()
| 336 | // also indicate the end of arguments, and the curly brace is not included |
| 337 | // in the return value nor is it loaded. |
| 338 | func (d *Dispenser) RemainingArgsAsTokens() []Token { |
| 339 | var args []Token |
| 340 | for d.NextArg() { |
| 341 | args = append(args, d.Token()) |
| 342 | } |
| 343 | return args |
| 344 | } |
| 345 | |
| 346 | // NewFromNextSegment returns a new dispenser with a copy of |
| 347 | // the tokens from the current token until the end of the |