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

Method Atom

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

Source from the content-addressed store, hash-verified

5396}
5397
5398func (p *MangleParser) Atom() (localctx IAtomContext) {
5399 localctx = NewAtomContext(p, p.GetParserRuleContext(), p.GetState())
5400 p.EnterRule(localctx, 36, MangleParserRULE_atom)
5401 p.EnterOuterAlt(localctx, 1)
5402 {
5403 p.SetState(325)
5404 p.Term()
5405 }
5406
5407errorExit:
5408 if p.HasError() {
5409 v := p.GetError()
5410 localctx.SetException(v)
5411 p.GetErrorHandler().ReportError(p, v)
5412 p.GetErrorHandler().Recover(p, v)
5413 p.SetError(nil)
5414 }
5415 p.ExitRule()
5416 return localctx
5417 goto errorExit // Trick to prevent compiler error if the label is not used
5418}
5419
5420// IAtomsContext is an interface to support dynamic dispatch.
5421type IAtomsContext interface {

Callers 3

DeclMethod · 0.95
ClauseMethod · 0.95
AtomsMethod · 0.95

Calls 4

TermMethod · 0.95
NewAtomContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected