(tokens Tokens, includeComments bool)
| 39 | } |
| 40 | |
| 41 | func newPeeker(tokens Tokens, includeComments bool) *peeker { |
| 42 | return &peeker{ |
| 43 | Tokens: tokens, |
| 44 | IncludeComments: includeComments, |
| 45 | |
| 46 | IncludeNewlinesStack: []bool{true}, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func (p *peeker) Peek() Token { |
| 51 | ret, _ := p.nextToken() |
no outgoing calls