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

Use Attachment to mark the expression #147

Merged
merged 1 commit into from
Oct 25, 2021
Merged

Use Attachment to mark the expression #147

merged 1 commit into from
Oct 25, 2021

Conversation

tdudzik
Copy link
Contributor

@tdudzik tdudzik commented Oct 22, 2021

Previously, we were relying on lines to detect if something is the inserted expression or not. It wasn't 100% reliable because in some cases there can be multiple expressions with the same line. This PR fixes that, by using an Attachment to mark something as the expression.

Thanks @adpi2 for suggesting that attachments may work for it!

Fixes #141

@tdudzik tdudzik requested review from tgodzik and adpi2 October 22, 2021 19:55
Copy link
Member

@adpi2 adpi2 left a comment

Choose a reason for hiding this comment

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

Well done @tdudzik!

All credit goes to @sjrd for suggesting Attachment.

@adpi2 adpi2 merged commit 384bb1a into scalacenter:main Oct 25, 2021
@tdudzik tdudzik deleted the use-attachment-to-mark-expression branch October 25, 2021 07:36
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.

Evaluate expression on munit assertEquals retrun wrong result
2 participants