* @author cbeust
*/
public class TypeParser {
public static ITestContent parseType(IType type) {
BaseVisitor result = new AnnotationVisitor();
ASTParser parser = ASTParser.newParser(AST.JLS3);
parser.setKind(ASTParser.K_COMPILATION_UNIT);
parser.setResolveBindings(true);
parser.setSource(type.getCompilationUnit());
parser.setProject(type.getJavaProject());