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

Fix bugs in ImportScannerImpl #596

Merged
merged 1 commit into from
Apr 22, 2016

Conversation

leventov
Copy link
Contributor

No description provided.

@GerardPaligot
Copy link
Contributor

Can you add a test case?

@leventov
Copy link
Contributor Author

Ok, will do.

.. While doing this I found another bug, in the meantime, could you please explain why you added scan(reference.getType()) here: 7fbc5fd#diff-d6d96ce9408866e5f08058c0be741b93R60

@GerardPaligot
Copy link
Contributor

CtExecutableReference is saved in CtInvocation (for example) and we delegate the type of this last node at its executable reference.

@leventov leventov force-pushed the visit_executable_reference_bug branch from 113e91d to e39c74a Compare April 19, 2016 14:12
@leventov leventov changed the title Fix bugs in CtVisitor.visitCtExecutableReference() implementations Fix bugs in ImportScannerImpl Apr 19, 2016
@leventov
Copy link
Contributor Author

@GerardPaligot I don't understand your explaination, please check this PR again, I think the test case shows why this call shouldn't be there.

@leventov leventov force-pushed the visit_executable_reference_bug branch 2 times, most recently from a0ab6b2 to 52e6489 Compare April 19, 2016 14:37
&& reference.getDeclaringType().getDeclaringType() == null) {
addImport(reference.getDeclaringType());
// constructor call
if (reference.getSimpleName().equals("<init>")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

@leventov leventov force-pushed the visit_executable_reference_bug branch from 52e6489 to f999022 Compare April 19, 2016 15:07
@leventov leventov force-pushed the visit_executable_reference_bug branch from f999022 to 538a705 Compare April 19, 2016 15:20
@leventov
Copy link
Contributor Author

Ok I finally made this PR to pass all tests, please review again

@leventov leventov mentioned this pull request Apr 22, 2016
@monperrus monperrus merged commit 809f7a2 into INRIA:master Apr 22, 2016
@tdurieux tdurieux mentioned this pull request Jun 24, 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.

3 participants