(include bool)
| 123 | } |
| 124 | |
| 125 | func (p *peeker) PushIncludeNewlines(include bool) { |
| 126 | if tracePeekerNewlinesStack { |
| 127 | // Record who called us so that we can more easily track down any |
| 128 | // mismanagement of the stack in the parser. |
| 129 | callers := []uintptr{0} |
| 130 | runtime.Callers(2, callers) |
| 131 | frames := runtime.CallersFrames(callers) |
| 132 | frame, _ := frames.Next() |
| 133 | p.newlineStackChanges = append(p.newlineStackChanges, peekerNewlineStackChange{ |
| 134 | true, frame, include, |
| 135 | }) |
| 136 | } |
| 137 | |
| 138 | p.IncludeNewlinesStack = append(p.IncludeNewlinesStack, include) |
| 139 | } |
| 140 | |
| 141 | func (p *peeker) PopIncludeNewlines() bool { |
| 142 | stack := p.IncludeNewlinesStack |
no outgoing calls