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

Method With

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

Source from the content-addressed store, hash-verified

1064}
1065
1066func (p *SqlBaseParser) With() (localctx IWithContext) {
1067 localctx = NewWithContext(p, p.GetParserRuleContext(), p.GetState())
1068 p.EnterRule(localctx, 4, SqlBaseParserRULE_with)
1069 var _la int
1070
1071 defer func() {
1072 p.ExitRule()
1073 }()
1074
1075 defer func() {
1076 if err := recover(); err != nil {
1077 if v, ok := err.(antlr.RecognitionException); ok {
1078 localctx.SetException(v)
1079 p.GetErrorHandler().ReportError(p, v)
1080 p.GetErrorHandler().Recover(p, v)
1081 } else {
1082 panic(err)
1083 }
1084 }
1085 }()
1086
1087 p.EnterOuterAlt(localctx, 1)
1088 {
1089 p.SetState(97)
1090 p.Match(SqlBaseParserWITH)
1091 }
1092 p.SetState(99)
1093 p.GetErrorHandler().Sync(p)
1094 _la = p.GetTokenStream().LA(1)
1095
1096 if _la == SqlBaseParserRECURSIVE {
1097 {
1098 p.SetState(98)
1099 p.Match(SqlBaseParserRECURSIVE)
1100 }
1101
1102 }
1103 {
1104 p.SetState(101)
1105 p.NamedQuery()
1106 }
1107 p.SetState(106)
1108 p.GetErrorHandler().Sync(p)
1109 _la = p.GetTokenStream().LA(1)
1110
1111 for _la == SqlBaseParserT__0 {
1112 {
1113 p.SetState(102)
1114 p.Match(SqlBaseParserT__0)
1115 }
1116 {
1117 p.SetState(103)
1118 p.NamedQuery()
1119 }
1120
1121 p.SetState(108)
1122 p.GetErrorHandler().Sync(p)
1123 _la = p.GetTokenStream().LA(1)

Callers 1

QueryMethod · 0.95

Calls 4

NamedQueryMethod · 0.95
NewWithContextFunction · 0.85
LAMethod · 0.80
ReportErrorMethod · 0.65

Tested by

no test coverage detected