LinkedListTree block = ASTBuilder.newBlock();
elseClause.addChildWithTokens(block);
ASTUtils.increaseIndentAfterFirstLine(block, indent);
return new ASTStatementList(block);
}
Statement stmt = StatementBuilder.build(elseClause.getFirstChild());
if (!(stmt instanceof ASBlock)) {
throw new SyntaxException("Expected a block, got "+ASTUtils.tokenName(elseClause.getFirstChild()));
}
return (ASBlock)stmt;
}