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

feat: add position to implicit block in CtIf #1678

Merged
merged 2 commits into from
Oct 31, 2017

Conversation

surli
Copy link
Collaborator

@surli surli commented Oct 31, 2017

fix #1636

CtBlock elseBlock = (CtBlock) elseStatement;
SourcePosition positionElse = elseBlock.getPosition();
CtStatement otherReturnStatement = elseBlock.getStatement(0);
assertEquals(otherReturnStatement.getPosition(), positionElse);
Copy link
Collaborator

Choose a reason for hiding this comment

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

super! could you assertions on the actual line numbers as well?

@monperrus monperrus merged commit bdb87fc into INRIA:master Oct 31, 2017
@monperrus
Copy link
Collaborator

thanks!

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.

bug in setPosition
2 participants