MCPcopy Create free account
hub / github.com/araddon/qlbridge / parseAlias

Method parseAlias

rel/parse_filterql.go:462–471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

460}
461
462func (m *FilterQLParser) parseAlias() (string, error) {
463 if m.Cur().T != lex.TokenAlias {
464 return "", nil
465 }
466 m.Next() // Consume ALIAS token
467 if m.Cur().T != lex.TokenIdentity && m.Cur().T != lex.TokenValue {
468 return "", fmt.Errorf("Expected identity but got: %v", m.Cur().T.String())
469 }
470 return strings.ToLower(m.Next().V), nil
471}
472
473func (m *FilterQLParser) isEnd() bool {
474 return m.IsEnd()

Callers 2

parseSelectMethod · 0.95
parseFilterMethod · 0.95

Calls 4

ErrorfMethod · 0.80
CurMethod · 0.65
NextMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected