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

Method FormalParameter

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

Source from the content-addressed store, hash-verified

788 }
789
790 final public void FormalParameter() throws ParseException {
791 /*@bgen(jjtree) FormalParameter */
792 BSHFormalParameter jjtn000 = new BSHFormalParameter(JJTFORMALPARAMETER);
793 boolean jjtc000 = true;
794 jjtree.openNodeScope(jjtn000);
795 jjtreeOpenNodeScope(jjtn000);Token t;
796 try {
797 if (jj_2_5(2)) {
798 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
799 case FINAL:
800 jj_consume_token(FINAL);
801 break;
802 default:
803 jj_la1[18] = jj_gen;
804 ;
805 }
806 Type();
807 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
808 case LT:
809 TypeArguments();
810 break;
811 default:
812 jj_la1[19] = jj_gen;
813 ;
814 }
815 t = jj_consume_token(IDENTIFIER);
816 jjtree.closeNodeScope(jjtn000, true);
817 jjtc000 = false;
818 jjtreeCloseNodeScope(jjtn000);
819 jjtn000.name = t.image;
820 } else {
821 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
822 case IDENTIFIER:
823 t = jj_consume_token(IDENTIFIER);
824 jjtree.closeNodeScope(jjtn000, true);
825 jjtc000 = false;
826 jjtreeCloseNodeScope(jjtn000);
827 jjtn000.name = t.image;
828 break;
829 default:
830 jj_la1[20] = jj_gen;
831 jj_consume_token(-1);
832 throw new ParseException();
833 }
834 }
835 } catch (Throwable jjte000) {
836 if (jjtc000) {
837 jjtree.clearNodeScope(jjtn000);
838 jjtc000 = false;
839 } else {
840 jjtree.popNode();
841 }
842 if (jjte000 instanceof RuntimeException) {
843 {if (true) throw (RuntimeException)jjte000;}
844 }
845 if (jjte000 instanceof ParseException) {
846 {if (true) throw (ParseException)jjte000;}
847 }

Callers 2

FormalParametersMethod · 0.95
TryStatementMethod · 0.95

Calls 11

jjtreeOpenNodeScopeMethod · 0.95
jj_2_5Method · 0.95
jj_ntkMethod · 0.95
jj_consume_tokenMethod · 0.95
TypeMethod · 0.95
TypeArgumentsMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80
popNodeMethod · 0.45

Tested by

no test coverage detected