Skip to content

Conversation

orizi
Copy link
Collaborator

@orizi orizi commented Sep 11, 2025

refactor(semantic): Better encapsulation of structs queries.

refactor(semantic): Better extern-type encapsulation.

@reviewable-StarkWare
Copy link

This change is Reviewable

@orizi orizi marked this pull request as ready for review September 11, 2025 22:27
@orizi orizi force-pushed the gt/orizi/09-11-refactor_semantic_better_encapsulation_of_structs_queries branch from c80be6b to b504176 Compare September 14, 2025 06:56
@orizi orizi force-pushed the gt/orizi/09-11-refactor_semantic_made_enum_more_encapsulated branch from aa54911 to 911e08d Compare September 14, 2025 06:56
@orizi orizi force-pushed the gt/orizi/09-11-refactor_semantic_better_encapsulation_of_structs_queries branch from b504176 to 19d4677 Compare September 14, 2025 07:32
@orizi orizi force-pushed the gt/orizi/09-11-refactor_semantic_made_enum_more_encapsulated branch from 911e08d to 73fed59 Compare September 14, 2025 07:32
Copy link
Contributor

@eytan-starkware eytan-starkware left a comment

Choose a reason for hiding this comment

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

@eytan-starkware reviewed 2 of 3 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @TomerStarkware)


-- commits line 5 at r2:
rebase


crates/cairo-lang-semantic/src/items/structure.rs line 32 at r2 (raw file):

mod test;

// TODO(spapini): Check for bad recursive types - those that will fail in Sierra generation.

Do we no longer need to check for bad types?

Copy link
Collaborator Author

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @eytan-starkware and @TomerStarkware)


crates/cairo-lang-semantic/src/items/structure.rs line 32 at r2 (raw file):

Previously, eytan-starkware wrote…

Do we no longer need to check for bad types?

was already done. leftover in a random place.

@orizi orizi changed the base branch from gt/orizi/09-11-refactor_semantic_made_enum_more_encapsulated to graphite-base/8391 September 14, 2025 09:31
@orizi orizi force-pushed the graphite-base/8391 branch from 73fed59 to fe5e560 Compare September 14, 2025 09:31
@orizi orizi force-pushed the gt/orizi/09-11-refactor_semantic_better_encapsulation_of_structs_queries branch from 19d4677 to f86597a Compare September 14, 2025 09:31
Copy link
Collaborator Author

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @eytan-starkware and @TomerStarkware)


-- commits line 5 at r2:

Previously, eytan-starkware wrote…

rebase

Done.

@orizi orizi changed the base branch from graphite-base/8391 to main September 14, 2025 09:31
Copy link
Contributor

@eytan-starkware eytan-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @orizi and @TomerStarkware)


-- commits line 5 at r2:

Previously, orizi wrote…

Done.

Not seeing it

@orizi orizi changed the title refactor(semantic): Better encapsulation of structs queries. refactor(semantic): Better encapsulation of structs and extern-type queries. Sep 14, 2025
Copy link
Collaborator Author

@orizi orizi left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @eytan-starkware and @TomerStarkware)


-- commits line 5 at r2:

Previously, eytan-starkware wrote…

Not seeing it

renamed pr to be considered for both structure and extern type.

Copy link
Contributor

@eytan-starkware eytan-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TomerStarkware)

@orizi orizi added this pull request to the merge queue Sep 14, 2025
Merged via the queue into main with commit a39e4c1 Sep 14, 2025
100 checks passed
@orizi orizi deleted the gt/orizi/09-11-refactor_semantic_better_encapsulation_of_structs_queries branch September 14, 2025 13:04
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