Skip to content

Commit

Permalink
refactor: regenerate files with short this for future clean diffs (#1039
Browse files Browse the repository at this point in the history
)
  • Loading branch information
monperrus authored and surli committed Dec 19, 2016
1 parent 7b12044 commit affafc8
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 148 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,12 @@ public <T> void visitCtThisAccess(CtThisAccess<T> thisAccess) {
// complex case of qualifed this
if (context.currentThis.peekLast() != null
&& !context.currentThis.peekLast().type.getQualifiedName().equals(targetType.getQualifiedName())) {
printer.snapshotLength();
visitCtTypeReferenceWithoutGenerics(targetType);
printer.write(".this");
if (printer.hasNewContent()) {
printer.write(".");
}
printer.write("this");
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static <T extends spoon.reflect.declaration.CtElement> T build(spoon.supp
private spoon.reflect.declaration.CtElement other;

public void setOther(spoon.reflect.declaration.CtElement other) {
spoon.support.visitor.clone.CloneBuilder.this.other = other;
this.other = other;
}

// auto-generated, see spoon.generating.CloneVisitorGenerator
Expand Down
Loading

0 comments on commit affafc8

Please sign in to comment.