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

Method visitIfPresent

query/sql/sql_parser.go:189–195  ·  view source on GitHub ↗
(ctx antlr.RuleContext, visitResult reflect.Type)

Source from the content-addressed store, hash-verified

187}
188
189func (v *ASTBuilder) visitIfPresent(ctx antlr.RuleContext, visitResult reflect.Type) interface{} {
190 if ctx == nil {
191 return reflect.Zero(visitResult).Interface()
192 }
193
194 return v.Visit(ctx)
195}
196
197func (v *ASTBuilder) visitList(ctxs []antlr.ParserRuleContext) interface{} {
198 var res = make([]interface{}, len(ctxs))

Callers 3

VisitQueryMethod · 0.95
VisitSelectSingleMethod · 0.95

Calls 1

VisitMethod · 0.95

Tested by

no test coverage detected