()
| 7100 | } |
| 7101 | |
| 7102 | func (p *SQLiteParser) Table_constraint() (localctx ITable_constraintContext) { |
| 7103 | localctx = NewTable_constraintContext(p, p.GetParserRuleContext(), p.GetState()) |
| 7104 | p.EnterRule(localctx, 38, SQLiteParserRULE_table_constraint) |
| 7105 | var _la int |
| 7106 | |
| 7107 | p.EnterOuterAlt(localctx, 1) |
| 7108 | p.SetState(561) |
| 7109 | p.GetErrorHandler().Sync(p) |
| 7110 | if p.HasError() { |
| 7111 | goto errorExit |
| 7112 | } |
| 7113 | _la = p.GetTokenStream().LA(1) |
| 7114 | |
| 7115 | if _la == SQLiteParserCONSTRAINT_ { |
| 7116 | { |
| 7117 | p.SetState(559) |
| 7118 | p.Match(SQLiteParserCONSTRAINT_) |
| 7119 | if p.HasError() { |
| 7120 | // Recognition error - abort rule |
| 7121 | goto errorExit |
| 7122 | } |
| 7123 | } |
| 7124 | { |
| 7125 | p.SetState(560) |
| 7126 | p.Name() |
| 7127 | } |
| 7128 | |
| 7129 | } |
| 7130 | p.SetState(600) |
| 7131 | p.GetErrorHandler().Sync(p) |
| 7132 | if p.HasError() { |
| 7133 | goto errorExit |
| 7134 | } |
| 7135 | |
| 7136 | switch p.GetTokenStream().LA(1) { |
| 7137 | case SQLiteParserPRIMARY_, SQLiteParserUNIQUE_: |
| 7138 | p.SetState(566) |
| 7139 | p.GetErrorHandler().Sync(p) |
| 7140 | if p.HasError() { |
| 7141 | goto errorExit |
| 7142 | } |
| 7143 | |
| 7144 | switch p.GetTokenStream().LA(1) { |
| 7145 | case SQLiteParserPRIMARY_: |
| 7146 | { |
| 7147 | p.SetState(563) |
| 7148 | p.Match(SQLiteParserPRIMARY_) |
| 7149 | if p.HasError() { |
| 7150 | // Recognition error - abort rule |
| 7151 | goto errorExit |
| 7152 | } |
| 7153 | } |
| 7154 | { |
| 7155 | p.SetState(564) |
| 7156 | p.Match(SQLiteParserKEY_) |
| 7157 | if p.HasError() { |
| 7158 | // Recognition error - abort rule |
| 7159 | goto errorExit |
no test coverage detected