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

Method Query

query/sql/antlrgen/sqlbase_parser.go:938–977  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

936}
937
938func (p *SqlBaseParser) Query() (localctx IQueryContext) {
939 localctx = NewQueryContext(p, p.GetParserRuleContext(), p.GetState())
940 p.EnterRule(localctx, 2, SqlBaseParserRULE_query)
941 var _la int
942
943 defer func() {
944 p.ExitRule()
945 }()
946
947 defer func() {
948 if err := recover(); err != nil {
949 if v, ok := err.(antlr.RecognitionException); ok {
950 localctx.SetException(v)
951 p.GetErrorHandler().ReportError(p, v)
952 p.GetErrorHandler().Recover(p, v)
953 } else {
954 panic(err)
955 }
956 }
957 }()
958
959 p.EnterOuterAlt(localctx, 1)
960 p.SetState(93)
961 p.GetErrorHandler().Sync(p)
962 _la = p.GetTokenStream().LA(1)
963
964 if _la == SqlBaseParserWITH {
965 {
966 p.SetState(92)
967 p.With()
968 }
969
970 }
971 {
972 p.SetState(95)
973 p.QueryNoWith()
974 }
975
976 return localctx
977}
978
979// IWithContext is an interface to support dynamic dispatch.
980type IWithContext interface {

Callers 6

ParseFunction · 0.95
StatementMethod · 0.95
NamedQueryMethod · 0.95
RelationPrimaryMethod · 0.95
PredicateMethod · 0.95
primaryExpressionMethod · 0.95

Calls 5

WithMethod · 0.95
QueryNoWithMethod · 0.95
LAMethod · 0.80
NewQueryContextFunction · 0.70
ReportErrorMethod · 0.65

Tested by

no test coverage detected