MCPcopy Create free account
hub / github.com/dynjs/dynjs / block

Method block

src/main/java/org/dynjs/parser/js/Parser.java:1233–1249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1231 }
1232
1233 public BlockStatement block() {
1234 try {
1235 pushContext(ContextType.OTHER);
1236 consume(LEFT_BRACE);
1237 List<Statement> statements = new ArrayList<Statement>();
1238
1239 while (la() != RIGHT_BRACE) {
1240 statements.add(statement());
1241 }
1242
1243 consume(RIGHT_BRACE);
1244
1245 return factory.block(statements);
1246 } finally {
1247 popContext();
1248 }
1249 }
1250
1251 public VariableStatement variableStatement() {
1252 return variableStatement(false);

Callers 5

statementMethod · 0.95
tryStatementMethod · 0.95
catchClauseMethod · 0.95
finallyClauseMethod · 0.95
functionBodyMethod · 0.45

Calls 6

pushContextMethod · 0.95
consumeMethod · 0.95
laMethod · 0.95
statementMethod · 0.95
popContextMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected