-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: JDTTreeBuilder #746
Conversation
728beb2
to
e8c653a
Compare
e8c653a
to
c927d12
Compare
@@ -462,7 +462,6 @@ public void visitCtPackage(CtPackage ctPackage) { | |||
ctPackage.getTypes().remove(child); | |||
} | |||
ctPackage.getTypes().add((CtType<?>) child); | |||
this.jdtTreeBuilder.context.addCreatedType((CtType<?>) child); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never used? useless?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method appends the given CtType to a list in BuilderContext and this list is never used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok :)
@@ -911,6 +828,8 @@ public void endVisit(WhileStatement whileStatement, BlockScope scope) { | |||
context.exit(whileStatement); | |||
} | |||
|
|||
|
|||
//TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
import java.util.EnumSet; | ||
import java.util.Set; | ||
|
||
class HelperJDTTreeBuilder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JDTTreeBuilderHelper
Split into multiple classes, remove unused method and fields for the sake of readability.