Skip to content
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

Merged
merged 5 commits into from
Jul 22, 2016
Merged

Conversation

danglotb
Copy link
Member

@danglotb danglotb commented Jul 6, 2016

Split into multiple classes, remove unused method and fields for the sake of readability.

@@ -462,7 +462,6 @@ public void visitCtPackage(CtPackage ctPackage) {
ctPackage.getTypes().remove(child);
}
ctPackage.getTypes().add((CtType<?>) child);
this.jdtTreeBuilder.context.addCreatedType((CtType<?>) child);
Copy link
Contributor

@GerardPaligot GerardPaligot Jul 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never used? useless?

Copy link
Member Author

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.

Copy link
Contributor

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
Copy link
Contributor

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 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JDTTreeBuilderHelper

@monperrus monperrus merged commit b6a9471 into INRIA:master Jul 22, 2016
@tdurieux tdurieux mentioned this pull request Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants