return (CodeBlock[]) result.toArray(new CodeBlock[result.size()]);
}
private void checkStatement(String code, int offset, List result, Statement sst) {
if (sst instanceof RutaStatement) {
RutaStatement statement = (RutaStatement) sst;
result.add(new CodeBlock(statement, new Region(offset + statement.sourceStart(), statement
.sourceEnd() - statement.sourceStart())));
Iterator si = statement.getExpressions().iterator();
// while (si.hasNext()) {
// Expression ex = (Expression) si.next();
// if (ex instanceof BlockDeclaration) {
// BlockDeclaration be = (BlockDeclaration) ex;
// try {