MCPcopy
hub / github.com/uber/aresdb / peekRune

Method peekRune

query/expr/parser.go:187–194  ·  view source on GitHub ↗

peekRune returns the next rune that would be read by the scanner.

()

Source from the content-addressed store, hash-verified

185
186// peekRune returns the next rune that would be read by the scanner.
187func (p *Parser) peekRune() rune {
188 r, _, _ := p.s.s.r.ReadRune()
189 if r != eof {
190 _ = p.s.s.r.UnreadRune()
191 }
192
193 return r
194}
195
196// parseOptionalTokenAndInt parses the specified token followed
197// by an int, if it exists.

Callers 1

parseSegmentedIdentsMethod · 0.95

Calls 2

ReadRuneMethod · 0.80
UnreadRuneMethod · 0.80

Tested by

no test coverage detected