MCPcopy Index your code
hub / github.com/uber/aresdb / parseString

Method parseString

query/expr/parser.go:178–184  ·  view source on GitHub ↗

parserString parses a string.

()

Source from the content-addressed store, hash-verified

176
177// parserString parses a string.
178func (p *Parser) parseString() (string, error) {
179 tok, pos, lit := p.scanIgnoreWhitespace()
180 if tok != STRING {
181 return "", newParseError(tokstr(tok, lit), []string{"string"}, pos)
182 }
183 return lit, nil
184}
185
186// peekRune returns the next rune that would be read by the scanner.
187func (p *Parser) peekRune() rune {

Callers

nothing calls this directly

Calls 3

scanIgnoreWhitespaceMethod · 0.95
newParseErrorFunction · 0.85
tokstrFunction · 0.85

Tested by

no test coverage detected