root.setEntity(new SourceCodeEntity(methodName, JavaEntityType.METHOD, new SourceRange(
method.declarationSourceStart,
method.declarationSourceEnd)));
List<Comment> comments = CompilationUtils.extractComments(compilation);
sMethodBodyConverter.initialize(root, method, comments, compilation.getScanner());
method.traverse(sMethodBodyConverter, (ClassScope) null);
return root;
}
public Node convertMethodDeclaration(String methodName, JavaCompilation compilation) {
AbstractMethodDeclaration method = CompilationUtils.findMethod(compilation.getCompilationUnit(), methodName);