result.add(new CodeBlock(statement, new Region(offset + statement.sourceStart(), statement
.sourceEnd() - statement.sourceStart())));
traverse(result, statement.getStatements(), offset, code);
} else if (node instanceof MethodDeclaration) {
MethodDeclaration statement = (MethodDeclaration) node;
result.add(new CodeBlock(statement, new Region(offset + statement.sourceStart(), statement
.sourceEnd() - statement.sourceStart())));
traverse(result, statement.getStatements(), offset, code);
}
}
}