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 'expressionSemanticDone' logic into a function #20600

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

dkorpel
Copy link
Contributor

@dkorpel dkorpel commented Dec 24, 2024

Following up #20594

I see now the issue is not really about expressionSemantic not being idempotent, but about the Expression.type field sometimes being used to assign a type rather than to compute it. I think there should be a semanticDone bitflag in Expression since the type field doubling as a semantic status field is not consistent, but my first naive attempt resulted in segfaults, so let's start by documenting the current behavior more accurately.

@dkorpel dkorpel added the Severity:Refactoring No semantic changes to code label Dec 24, 2024
@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @dkorpel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#20600"

@dkorpel dkorpel merged commit b46a426 into dlang:master Dec 24, 2024
40 of 41 checks passed
@dkorpel dkorpel deleted the sema3cache-refactor branch December 24, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge:auto-merge Severity:Refactoring No semantic changes to code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants