MCPcopy Index your code
hub / github.com/google/mangle / LetStmt

Method LetStmt

parse/gen/mangle_parser.go:3070–3114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3068}
3069
3070func (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
3103errorExit:
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.
3117type ILiteralOrFmlContext interface {

Callers 1

TransformMethod · 0.95

Calls 4

TermMethod · 0.95
NewLetStmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected