Skip to content

transpile: Split off various c_ast submodules#1652

Open
Rua wants to merge 7 commits intoimmunant:masterfrom
Rua:ast-refactor2
Open

transpile: Split off various c_ast submodules#1652
Rua wants to merge 7 commits intoimmunant:masterfrom
Rua:ast-refactor2

Conversation

@Rua
Copy link
Contributor

@Rua Rua commented Mar 8, 2026

No description provided.

@Rua Rua force-pushed the ast-refactor2 branch from 638a2ec to 51d989b Compare March 8, 2026 17:18
@kkysen kkysen changed the title transpile: Split off various c_ast submodules transpile: Split off various c_ast submodules Mar 10, 2026
Comment on lines 35 to 42
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be useful to keep all of these together. I'm not sure, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have a particular stance on it.

/// If it's not, or we can't tell if it is, return `false`.
///
/// This should be a top-down, pessimistic/conservative analysis.
pub fn is_const_expr(&self, expr: CExprId) -> bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Previously, related things like fn is_const_expr and fn is_const_stmt were grouped together, but this reorganization breaks that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, what do you suggest doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could move all the impl TypedAstContext back into the main module?

@Rua Rua force-pushed the ast-refactor2 branch 5 times, most recently from 2e67657 to 1e909e1 Compare March 19, 2026 18:15
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