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

Method VisitSelectAll

query/sql/sql_parser.go:521–533  ·  view source on GitHub ↗

VisitSelectAll visits the node

(ctx *antlrgen.SelectAllContext)

Source from the content-addressed store, hash-verified

519
520// VisitSelectAll visits the node
521func (v *ASTBuilder) VisitSelectAll(ctx *antlrgen.SelectAllContext) interface{} {
522 v.Logger.Debugf("VisitSelectAll: %s", ctx.GetText())
523
524 var allColumns *tree.AllColumns
525 if ctx.QualifiedName() != nil {
526 allColumns = tree.NewAllColumns(v.getLocation(ctx), v.getQualifiedName(ctx.QualifiedName()))
527 } else {
528 allColumns = tree.NewAllColumns(v.getLocation(ctx), nil)
529 }
530
531 allColumns.SetValue(fmt.Sprintf("AllColumns: (%s)", v.getText(ctx.BaseParserRuleContext)))
532 return allColumns
533}
534
535// VisitSelectSingle visits the node
536func (v *ASTBuilder) VisitSelectSingle(ctx *antlrgen.SelectSingleContext) interface{} {

Callers

nothing calls this directly

Calls 7

getLocationMethod · 0.95
getQualifiedNameMethod · 0.95
getTextMethod · 0.95
NewAllColumnsFunction · 0.92
DebugfMethod · 0.65
SetValueMethod · 0.65
QualifiedNameMethod · 0.45

Tested by

no test coverage detected