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

Method parseIdent

query/expr/parser.go:103–109  ·  view source on GitHub ↗

parseIdent parses an identifier.

()

Source from the content-addressed store, hash-verified

101
102// parseIdent parses an identifier.
103func (p *Parser) parseIdent() (string, error) {
104 tok, pos, lit := p.scanIgnoreWhitespace()
105 if tok != IDENT {
106 return "", newParseError(tokstr(tok, lit), []string{"identifier"}, pos)
107 }
108 return lit, nil
109}
110
111// parseIdentList parses a comma delimited list of identifiers.
112func (p *Parser) parseIdentList() ([]string, error) {

Callers 2

parseIdentListMethod · 0.95
parseSegmentedIdentsMethod · 0.95

Calls 3

scanIgnoreWhitespaceMethod · 0.95
newParseErrorFunction · 0.85
tokstrFunction · 0.85

Tested by

no test coverage detected