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

Method WhileStatement

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

Source from the content-addressed store, hash-verified

3090 }
3091
3092 final public void WhileStatement() throws ParseException {
3093 /*@bgen(jjtree) WhileStatement */
3094 BSHWhileStatement jjtn000 = new BSHWhileStatement(JJTWHILESTATEMENT);
3095 boolean jjtc000 = true;
3096 jjtree.openNodeScope(jjtn000);
3097 jjtreeOpenNodeScope(jjtn000);
3098 try {
3099 jj_consume_token(WHILE);
3100 jj_consume_token(LPAREN);
3101 Expression();
3102 jj_consume_token(RPAREN);
3103 Statement();
3104 } catch (Throwable jjte000) {
3105 if (jjtc000) {
3106 jjtree.clearNodeScope(jjtn000);
3107 jjtc000 = false;
3108 } else {
3109 jjtree.popNode();
3110 }
3111 if (jjte000 instanceof RuntimeException) {
3112 {if (true) throw (RuntimeException)jjte000;}
3113 }
3114 if (jjte000 instanceof ParseException) {
3115 {if (true) throw (ParseException)jjte000;}
3116 }
3117 {if (true) throw (Error)jjte000;}
3118 } finally {
3119 if (jjtc000) {
3120 jjtree.closeNodeScope(jjtn000, true);
3121 jjtreeCloseNodeScope(jjtn000);
3122 }
3123 }
3124 }
3125
3126/*
3127 Do statement is just a While statement with a special hook to execute

Callers 1

StatementMethod · 0.95

Calls 9

jjtreeOpenNodeScopeMethod · 0.95
jj_consume_tokenMethod · 0.95
ExpressionMethod · 0.95
StatementMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80
popNodeMethod · 0.45

Tested by

no test coverage detected