MCPcopy Index your code
hub / github.com/beanshell/beanshell / VariableDeclarator

Method VariableDeclarator

src/bsh/Parser.java:553–594  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

551 }
552
553 final public void VariableDeclarator() throws ParseException {
554 /*@bgen(jjtree) VariableDeclarator */
555 BSHVariableDeclarator jjtn000 = new BSHVariableDeclarator(JJTVARIABLEDECLARATOR);
556 boolean jjtc000 = true;
557 jjtree.openNodeScope(jjtn000);
558 jjtreeOpenNodeScope(jjtn000);Token t;
559 try {
560 t = jj_consume_token(IDENTIFIER);
561 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
562 case ASSIGN:
563 jj_consume_token(ASSIGN);
564 VariableInitializer();
565 break;
566 default:
567 jj_la1[12] = jj_gen;
568 ;
569 }
570 jjtree.closeNodeScope(jjtn000, true);
571 jjtc000 = false;
572 jjtreeCloseNodeScope(jjtn000);
573 jjtn000.name = t.image;
574 } catch (Throwable jjte000) {
575 if (jjtc000) {
576 jjtree.clearNodeScope(jjtn000);
577 jjtc000 = false;
578 } else {
579 jjtree.popNode();
580 }
581 if (jjte000 instanceof RuntimeException) {
582 {if (true) throw (RuntimeException)jjte000;}
583 }
584 if (jjte000 instanceof ParseException) {
585 {if (true) throw (ParseException)jjte000;}
586 }
587 {if (true) throw (Error)jjte000;}
588 } finally {
589 if (jjtc000) {
590 jjtree.closeNodeScope(jjtn000, true);
591 jjtreeCloseNodeScope(jjtn000);
592 }
593 }
594 }
595
596/*
597this originally handled postfix array dimensions...

Callers 1

Calls 9

jjtreeOpenNodeScopeMethod · 0.95
jj_consume_tokenMethod · 0.95
jj_ntkMethod · 0.95
VariableInitializerMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80
popNodeMethod · 0.45

Tested by

no test coverage detected