MCPcopy Index your code
hub / github.com/uber/aresdb / Predicated

Method Predicated

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

Source from the content-addressed store, hash-verified

5425}
5426
5427func (p *SqlBaseParser) Predicated() (localctx IPredicatedContext) {
5428 localctx = NewPredicatedContext(p, p.GetParserRuleContext(), p.GetState())
5429 p.EnterRule(localctx, 48, SqlBaseParserRULE_predicated)
5430
5431 defer func() {
5432 p.ExitRule()
5433 }()
5434
5435 defer func() {
5436 if err := recover(); err != nil {
5437 if v, ok := err.(antlr.RecognitionException); ok {
5438 localctx.SetException(v)
5439 p.GetErrorHandler().ReportError(p, v)
5440 p.GetErrorHandler().Recover(p, v)
5441 } else {
5442 panic(err)
5443 }
5444 }
5445 }()
5446
5447 p.EnterOuterAlt(localctx, 1)
5448 {
5449 p.SetState(380)
5450
5451 var _x = p.valueExpression(0)
5452
5453 localctx.(*PredicatedContext)._valueExpression = _x
5454 }
5455 p.SetState(382)
5456 p.GetErrorHandler().Sync(p)
5457
5458 if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 48, p.GetParserRuleContext()) == 1 {
5459 {
5460 p.SetState(381)
5461 p.Predicate(localctx.(*PredicatedContext).Get_valueExpression())
5462 }
5463
5464 }
5465
5466 return localctx
5467}
5468
5469// IPredicateContext is an interface to support dynamic dispatch.
5470type IPredicateContext interface {

Callers 1

booleanExpressionMethod · 0.95

Calls 5

valueExpressionMethod · 0.95
PredicateMethod · 0.95
NewPredicatedContextFunction · 0.85
ReportErrorMethod · 0.65
Get_valueExpressionMethod · 0.65

Tested by

no test coverage detected