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

Method Statement

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

Source from the content-addressed store, hash-verified

830}
831
832func (p *SqlBaseParser) Statement() (localctx IStatementContext) {
833 localctx = NewStatementContext(p, p.GetParserRuleContext(), p.GetState())
834 p.EnterRule(localctx, 0, SqlBaseParserRULE_statement)
835
836 defer func() {
837 p.ExitRule()
838 }()
839
840 defer func() {
841 if err := recover(); err != nil {
842 if v, ok := err.(antlr.RecognitionException); ok {
843 localctx.SetException(v)
844 p.GetErrorHandler().ReportError(p, v)
845 p.GetErrorHandler().Recover(p, v)
846 } else {
847 panic(err)
848 }
849 }
850 }()
851
852 localctx = NewStatementDefaultContext(p, localctx)
853 p.EnterOuterAlt(localctx, 1)
854 {
855 p.SetState(90)
856 p.Query()
857 }
858
859 return localctx
860}
861
862// IQueryContext is an interface to support dynamic dispatch.
863type IQueryContext interface {

Callers

nothing calls this directly

Calls 4

QueryMethod · 0.95
NewStatementContextFunction · 0.85
ReportErrorMethod · 0.65

Tested by

no test coverage detected