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

Method Decl

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

Source from the content-addressed store, hash-verified

1269}
1270
1271func (p *MangleParser) Decl() (localctx IDeclContext) {
1272 localctx = NewDeclContext(p, p.GetParserRuleContext(), p.GetState())
1273 p.EnterRule(localctx, 8, MangleParserRULE_decl)
1274 var _la int
1275
1276 p.EnterOuterAlt(localctx, 1)
1277 {
1278 p.SetState(73)
1279 p.Match(MangleParserDECL)
1280 if p.HasError() {
1281 // Recognition error - abort rule
1282 goto errorExit
1283 }
1284 }
1285 {
1286 p.SetState(74)
1287 p.Atom()
1288 }
1289 p.SetState(76)
1290 p.GetErrorHandler().Sync(p)
1291 if p.HasError() {
1292 goto errorExit
1293 }
1294 _la = p.GetTokenStream().LA(1)
1295
1296 if _la == MangleParserT__0 {
1297 {
1298 p.SetState(75)
1299 p.Match(MangleParserT__0)
1300 if p.HasError() {
1301 // Recognition error - abort rule
1302 goto errorExit
1303 }
1304 }
1305
1306 }
1307 p.SetState(79)
1308 p.GetErrorHandler().Sync(p)
1309 if p.HasError() {
1310 goto errorExit
1311 }
1312 _la = p.GetTokenStream().LA(1)
1313
1314 if _la == MangleParserT__2 {
1315 {
1316 p.SetState(78)
1317 p.DescrBlock()
1318 }
1319
1320 }
1321 p.SetState(84)
1322 p.GetErrorHandler().Sync(p)
1323 if p.HasError() {
1324 goto errorExit
1325 }
1326 _la = p.GetTokenStream().LA(1)
1327
1328 for _la == MangleParserBOUND {

Callers 1

ProgramMethod · 0.95

Calls 7

AtomMethod · 0.95
DescrBlockMethod · 0.95
BoundsBlockMethod · 0.95
ConstraintsBlockMethod · 0.95
NewDeclContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected