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

Method PackageDeclaration

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

Source from the content-addressed store, hash-verified

447 }
448
449 final public void PackageDeclaration() throws ParseException {
450 /*@bgen(jjtree) PackageDeclaration */
451 BSHPackageDeclaration jjtn000 = new BSHPackageDeclaration(JJTPACKAGEDECLARATION);
452 boolean jjtc000 = true;
453 jjtree.openNodeScope(jjtn000);
454 jjtreeOpenNodeScope(jjtn000);
455 try {
456 jj_consume_token(PACKAGE);
457 AmbiguousName();
458 } catch (Throwable jjte000) {
459 if (jjtc000) {
460 jjtree.clearNodeScope(jjtn000);
461 jjtc000 = false;
462 } else {
463 jjtree.popNode();
464 }
465 if (jjte000 instanceof RuntimeException) {
466 {if (true) throw (RuntimeException)jjte000;}
467 }
468 if (jjte000 instanceof ParseException) {
469 {if (true) throw (ParseException)jjte000;}
470 }
471 {if (true) throw (Error)jjte000;}
472 } finally {
473 if (jjtc000) {
474 jjtree.closeNodeScope(jjtn000, true);
475 jjtreeCloseNodeScope(jjtn000);
476 }
477 }
478 }
479
480 final public void ImportDeclaration() throws ParseException {
481 /*@bgen(jjtree) ImportDeclaration */

Callers 1

BlockStatementMethod · 0.95

Calls 8

jjtreeOpenNodeScopeMethod · 0.95
jj_consume_tokenMethod · 0.95
AmbiguousNameMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80
popNodeMethod · 0.45

Tested by

no test coverage detected