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

Method Start_

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

Source from the content-addressed store, hash-verified

421}
422
423func (p *MangleParser) Start_() (localctx IStartContext) {
424 localctx = NewStartContext(p, p.GetParserRuleContext(), p.GetState())
425 p.EnterRule(localctx, 0, MangleParserRULE_start)
426 p.EnterOuterAlt(localctx, 1)
427 {
428 p.SetState(40)
429 p.Program()
430 }
431 {
432 p.SetState(41)
433 p.Match(MangleParserEOF)
434 if p.HasError() {
435 // Recognition error - abort rule
436 goto errorExit
437 }
438 }
439
440errorExit:
441 if p.HasError() {
442 v := p.GetError()
443 localctx.SetException(v)
444 p.GetErrorHandler().ReportError(p, v)
445 p.GetErrorHandler().Recover(p, v)
446 p.SetError(nil)
447 }
448 p.ExitRule()
449 return localctx
450 goto errorExit // Trick to prevent compiler error if the label is not used
451}
452
453// IProgramContext is an interface to support dynamic dispatch.
454type IProgramContext interface {

Callers 1

UnitFunction · 0.80

Calls 4

ProgramMethod · 0.95
NewStartContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected