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

Method Filter

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

Source from the content-addressed store, hash-verified

10238}
10239
10240func (p *SqlBaseParser) Filter() (localctx IFilterContext) {
10241 localctx = NewFilterContext(p, p.GetParserRuleContext(), p.GetState())
10242 p.EnterRule(localctx, 80, SqlBaseParserRULE_filter)
10243
10244 defer func() {
10245 p.ExitRule()
10246 }()
10247
10248 defer func() {
10249 if err := recover(); err != nil {
10250 if v, ok := err.(antlr.RecognitionException); ok {
10251 localctx.SetException(v)
10252 p.GetErrorHandler().ReportError(p, v)
10253 p.GetErrorHandler().Recover(p, v)
10254 } else {
10255 panic(err)
10256 }
10257 }
10258 }()
10259
10260 p.EnterOuterAlt(localctx, 1)
10261 {
10262 p.SetState(704)
10263 p.Match(SqlBaseParserFILTER)
10264 }
10265 {
10266 p.SetState(705)
10267 p.Match(SqlBaseParserT__1)
10268 }
10269 {
10270 p.SetState(706)
10271 p.Match(SqlBaseParserWHERE)
10272 }
10273 {
10274 p.SetState(707)
10275 p.booleanExpression(0)
10276 }
10277 {
10278 p.SetState(708)
10279 p.Match(SqlBaseParserT__2)
10280 }
10281
10282 return localctx
10283}
10284
10285// IQualifiedNameContext is an interface to support dynamic dispatch.
10286type IQualifiedNameContext interface {

Callers 2

primaryExpressionMethod · 0.95
VisitFunctionCallMethod · 0.45

Calls 3

booleanExpressionMethod · 0.95
NewFilterContextFunction · 0.85
ReportErrorMethod · 0.65

Tested by

no test coverage detected