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

DeclaredType in TypeChecker #2008

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

gzanitti
Copy link
Collaborator

As part of the Struct integration (mainly typing), we need to improve the way “declared types” are handled so that we can type struct fields without passing new data structures to type checking.

This PR introduces the necessary modification to then add Struct typing on top of it, preventing #1910 from being huge.

@gzanitti gzanitti marked this pull request as ready for review November 1, 2024 17:32
@chriseth chriseth changed the title DeclatedType in TypeChecker DeclaredType in TypeChecker Nov 4, 2024
@chriseth
Copy link
Member

chriseth commented Nov 7, 2024

This looks very good now, thanks! Now my main remaining question is: Can we turn the two enums into a single one?

@gzanitti
Copy link
Collaborator Author

gzanitti commented Nov 11, 2024

This looks very good now, thanks! Now my main remaining question is: Can we turn the two enums into a single one?

Do you mean DeclaredType and DeclaredTypeKind? Maybe adding the type and an Option<HashMap<...>> to DeclaredType? I find the Option more cumbersome than having another Enum, but whatever you prefer :)

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.

2 participants