MCPcopy Create free account
hub / github.com/beanshell/beanshell / ConditionalOrExpression

Method ConditionalOrExpression

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

Source from the content-addressed store, hash-verified

1288 }
1289
1290 final public void ConditionalOrExpression() throws ParseException {
1291 Token t=null;
1292 ConditionalAndExpression();
1293 label_7:
1294 while (true) {
1295 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1296 case BOOL_OR:
1297 case BOOL_ORX:
1298 ;
1299 break;
1300 default:
1301 jj_la1[29] = jj_gen;
1302 break label_7;
1303 }
1304 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1305 case BOOL_OR:
1306 t = jj_consume_token(BOOL_OR);
1307 break;
1308 case BOOL_ORX:
1309 t = jj_consume_token(BOOL_ORX);
1310 break;
1311 default:
1312 jj_la1[30] = jj_gen;
1313 jj_consume_token(-1);
1314 throw new ParseException();
1315 }
1316 ConditionalAndExpression();
1317 BSHBinaryExpression jjtn001 = new BSHBinaryExpression(JJTBINARYEXPRESSION);
1318 boolean jjtc001 = true;
1319 jjtree.openNodeScope(jjtn001);
1320 jjtreeOpenNodeScope(jjtn001);
1321 try {
1322 jjtree.closeNodeScope(jjtn001, 2);
1323 jjtc001 = false;
1324 jjtreeCloseNodeScope(jjtn001);
1325 jjtn001.kind = t.kind;
1326 } finally {
1327 if (jjtc001) {
1328 jjtree.closeNodeScope(jjtn001, 2);
1329 jjtreeCloseNodeScope(jjtn001);
1330 }
1331 }
1332 }
1333 }
1334
1335 final public void ConditionalAndExpression() throws ParseException {
1336 Token t=null;

Callers 1

ConditionalExpressionMethod · 0.95

Calls 7

jj_ntkMethod · 0.95
jj_consume_tokenMethod · 0.95
jjtreeOpenNodeScopeMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80

Tested by

no test coverage detected