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

Method VariableDeclaratorId

parser/gscript_parser.go:3139–3185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3137}
3138
3139func (p *GScriptParser) VariableDeclaratorId() (localctx IVariableDeclaratorIdContext) {
3140 localctx = NewVariableDeclaratorIdContext(p, p.GetParserRuleContext(), p.GetState())
3141 p.EnterRule(localctx, 36, GScriptParserRULE_variableDeclaratorId)
3142 var _la int
3143
3144 defer func() {
3145 p.ExitRule()
3146 }()
3147
3148 defer func() {
3149 if err := recover(); err != nil {
3150 if v, ok := err.(antlr.RecognitionException); ok {
3151 localctx.SetException(v)
3152 p.GetErrorHandler().ReportError(p, v)
3153 p.GetErrorHandler().Recover(p, v)
3154 } else {
3155 panic(err)
3156 }
3157 }
3158 }()
3159
3160 p.EnterOuterAlt(localctx, 1)
3161 {
3162 p.SetState(221)
3163 p.Match(GScriptParserIDENTIFIER)
3164 }
3165 p.SetState(226)
3166 p.GetErrorHandler().Sync(p)
3167 _la = p.GetTokenStream().LA(1)
3168
3169 for _la == GScriptParserLBRACK {
3170 {
3171 p.SetState(222)
3172 p.Match(GScriptParserLBRACK)
3173 }
3174 {
3175 p.SetState(223)
3176 p.Match(GScriptParserRBRACK)
3177 }
3178
3179 p.SetState(228)
3180 p.GetErrorHandler().Sync(p)
3181 _la = p.GetTokenStream().LA(1)
3182 }
3183
3184 return localctx
3185}
3186
3187// IVariableInitializerContext is an interface to support dynamic dispatch.
3188type IVariableInitializerContext interface {

Callers 9

FormalParameterMethod · 0.95
LastFormalParameterMethod · 0.95
VariableDeclaratorMethod · 0.95
executeFunctionCallMethod · 0.45
ExitFormalParameterMethod · 0.45

Calls 3

EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected