Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
monperrus committed Sep 5, 2020
1 parent 4ebe590 commit 7a15b79
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,16 @@ private RuntimeBuilderContext exit() {
/** transforms a java.lang.Class into a CtType (ie a shadow type in Spoon's parlance) */
public <T, R extends CtType<T>> R scan(Class<T> clazz) {
CtPackage ctPackage;
CtType<?> ctEnclosingClass;
/*CtType<?> ctEnclosingClass;
if (clazz.getEnclosingClass() != null) {
ctEnclosingClass = scan(clazz.getEnclosingClass());
return ctEnclosingClass.getNestedType(clazz.getSimpleName());
} else {
R nestedType = ctEnclosingClass.getNestedType(clazz.getSimpleName());
if (nestedType == null) {
System.out.println();
}
return nestedType;
} else */
{
if (clazz.getPackage() == null) {
ctPackage = factory.Package().getRootPackage();
} else {
Expand Down

0 comments on commit 7a15b79

Please sign in to comment.