MCPcopy Index your code
hub / github.com/crossoverJie/gscript / FieldDeclaration

Method FieldDeclaration

parser/gscript_parser.go:2728–2759  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2726}
2727
2728func (p *GScriptParser) FieldDeclaration() (localctx IFieldDeclarationContext) {
2729 localctx = NewFieldDeclarationContext(p, p.GetParserRuleContext(), p.GetState())
2730 p.EnterRule(localctx, 30, GScriptParserRULE_fieldDeclaration)
2731
2732 defer func() {
2733 p.ExitRule()
2734 }()
2735
2736 defer func() {
2737 if err := recover(); err != nil {
2738 if v, ok := err.(antlr.RecognitionException); ok {
2739 localctx.SetException(v)
2740 p.GetErrorHandler().ReportError(p, v)
2741 p.GetErrorHandler().Recover(p, v)
2742 } else {
2743 panic(err)
2744 }
2745 }
2746 }()
2747
2748 p.EnterOuterAlt(localctx, 1)
2749 {
2750 p.SetState(204)
2751 p.VariableDeclarators()
2752 }
2753 {
2754 p.SetState(205)
2755 p.Match(GScriptParserT__0)
2756 }
2757
2758 return localctx
2759}
2760
2761// IVariableDeclaratorsContext is an interface to support dynamic dispatch.
2762type IVariableDeclaratorsContext interface {

Callers 2

MemberDeclarationMethod · 0.95

Calls 4

VariableDeclaratorsMethod · 0.95
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected