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

Method Clause

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

Source from the content-addressed store, hash-verified

1993}
1994
1995func (p *MangleParser) Clause() (localctx IClauseContext) {
1996 localctx = NewClauseContext(p, p.GetParserRuleContext(), p.GetState())
1997 p.EnterRule(localctx, 16, MangleParserRULE_clause)
1998 var _la int
1999
2000 p.EnterOuterAlt(localctx, 1)
2001 {
2002 p.SetState(113)
2003 p.Atom()
2004 }
2005 p.SetState(115)
2006 p.GetErrorHandler().Sync(p)
2007 if p.HasError() {
2008 goto errorExit
2009 }
2010 _la = p.GetTokenStream().LA(1)
2011
2012 if _la == MangleParserAT {
2013 {
2014 p.SetState(114)
2015 p.TemporalAnnotation()
2016 }
2017
2018 }
2019 p.SetState(119)
2020 p.GetErrorHandler().Sync(p)
2021 if p.HasError() {
2022 goto errorExit
2023 }
2024 _la = p.GetTokenStream().LA(1)
2025
2026 if _la == MangleParserLONGLEFTDOUBLEARROW || _la == MangleParserCOLONDASH {
2027 {
2028 p.SetState(117)
2029 _la = p.GetTokenStream().LA(1)
2030
2031 if !(_la == MangleParserLONGLEFTDOUBLEARROW || _la == MangleParserCOLONDASH) {
2032 p.GetErrorHandler().RecoverInline(p)
2033 } else {
2034 p.GetErrorHandler().ReportMatch(p)
2035 p.Consume()
2036 }
2037 }
2038 {
2039 p.SetState(118)
2040 p.ClauseBody()
2041 }
2042
2043 }
2044 {
2045 p.SetState(121)
2046 p.Match(MangleParserT__1)
2047 if p.HasError() {
2048 // Recognition error - abort rule
2049 goto errorExit
2050 }
2051 }
2052

Callers 1

ProgramMethod · 0.95

Calls 6

AtomMethod · 0.95
TemporalAnnotationMethod · 0.95
ClauseBodyMethod · 0.95
NewClauseContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected