()
| 3068 | } |
| 3069 | |
| 3070 | func (p *MangleParser) LetStmt() (localctx ILetStmtContext) { |
| 3071 | localctx = NewLetStmtContext(p, p.GetParserRuleContext(), p.GetState()) |
| 3072 | p.EnterRule(localctx, 26, MangleParserRULE_letStmt) |
| 3073 | p.EnterOuterAlt(localctx, 1) |
| 3074 | { |
| 3075 | p.SetState(175) |
| 3076 | p.Match(MangleParserLET) |
| 3077 | if p.HasError() { |
| 3078 | // Recognition error - abort rule |
| 3079 | goto errorExit |
| 3080 | } |
| 3081 | } |
| 3082 | { |
| 3083 | p.SetState(176) |
| 3084 | p.Match(MangleParserVARIABLE) |
| 3085 | if p.HasError() { |
| 3086 | // Recognition error - abort rule |
| 3087 | goto errorExit |
| 3088 | } |
| 3089 | } |
| 3090 | { |
| 3091 | p.SetState(177) |
| 3092 | p.Match(MangleParserEQ) |
| 3093 | if p.HasError() { |
| 3094 | // Recognition error - abort rule |
| 3095 | goto errorExit |
| 3096 | } |
| 3097 | } |
| 3098 | { |
| 3099 | p.SetState(178) |
| 3100 | p.Term() |
| 3101 | } |
| 3102 | |
| 3103 | errorExit: |
| 3104 | if p.HasError() { |
| 3105 | v := p.GetError() |
| 3106 | localctx.SetException(v) |
| 3107 | p.GetErrorHandler().ReportError(p, v) |
| 3108 | p.GetErrorHandler().Recover(p, v) |
| 3109 | p.SetError(nil) |
| 3110 | } |
| 3111 | p.ExitRule() |
| 3112 | return localctx |
| 3113 | goto errorExit // Trick to prevent compiler error if the label is not used |
| 3114 | } |
| 3115 | |
| 3116 | // ILiteralOrFmlContext is an interface to support dynamic dispatch. |
| 3117 | type ILiteralOrFmlContext interface { |
no test coverage detected