()
| 7369 | } |
| 7370 | |
| 7371 | func (p *GScriptParser) TypeType() (localctx ITypeTypeContext) { |
| 7372 | localctx = NewTypeTypeContext(p, p.GetParserRuleContext(), p.GetState()) |
| 7373 | p.EnterRule(localctx, 74, GScriptParserRULE_typeType) |
| 7374 | var _la int |
| 7375 | |
| 7376 | defer func() { |
| 7377 | p.ExitRule() |
| 7378 | }() |
| 7379 | |
| 7380 | defer func() { |
| 7381 | if err := recover(); err != nil { |
| 7382 | if v, ok := err.(antlr.RecognitionException); ok { |
| 7383 | localctx.SetException(v) |
| 7384 | p.GetErrorHandler().ReportError(p, v) |
| 7385 | p.GetErrorHandler().Recover(p, v) |
| 7386 | } else { |
| 7387 | panic(err) |
| 7388 | } |
| 7389 | } |
| 7390 | }() |
| 7391 | |
| 7392 | p.EnterOuterAlt(localctx, 1) |
| 7393 | p.SetState(459) |
| 7394 | p.GetErrorHandler().Sync(p) |
| 7395 | |
| 7396 | switch p.GetTokenStream().LA(1) { |
| 7397 | case GScriptParserIDENTIFIER: |
| 7398 | { |
| 7399 | p.SetState(456) |
| 7400 | p.ClassOrInterfaceType() |
| 7401 | } |
| 7402 | |
| 7403 | case GScriptParserFUNCTION: |
| 7404 | { |
| 7405 | p.SetState(457) |
| 7406 | p.FunctionType() |
| 7407 | } |
| 7408 | |
| 7409 | case GScriptParserINT, GScriptParserSTRING, GScriptParserFLOAT, GScriptParserBOOLEAN, GScriptParserBYTE, GScriptParserANY: |
| 7410 | { |
| 7411 | p.SetState(458) |
| 7412 | p.PrimitiveType() |
| 7413 | } |
| 7414 | |
| 7415 | default: |
| 7416 | panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil)) |
| 7417 | } |
| 7418 | p.SetState(465) |
| 7419 | p.GetErrorHandler().Sync(p) |
| 7420 | _la = p.GetTokenStream().LA(1) |
| 7421 | |
| 7422 | for _la == GScriptParserLBRACK { |
| 7423 | { |
| 7424 | p.SetState(461) |
| 7425 | p.Match(GScriptParserLBRACK) |
| 7426 | } |
| 7427 | { |
| 7428 | p.SetState(462) |
no test coverage detected