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

Method GetTextIfPresent

query/sql/sql_parser.go:1666–1672  ·  view source on GitHub ↗

GetTextIfPresent visits the node

(token antlr.Token)

Source from the content-addressed store, hash-verified

1664
1665// GetTextIfPresent visits the node
1666func (v *ASTBuilder) GetTextIfPresent(token antlr.Token) string {
1667 var text string
1668 if token != nil {
1669 text = token.GetText()
1670 }
1671 return text
1672}
1673
1674// isDistinct check if DISTINCT quantifier is set
1675func (v *ASTBuilder) isDistinct(setQuantifier antlrgen.ISetQuantifierContext) bool {

Callers 1

VisitQueryNoWithMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected