Skip to content

transpile: Don't pass ExprContext to most decls - #1990

Draft
Rua wants to merge 16 commits into
immunant:masterfrom
Rua:exprcontext-decl
Draft

transpile: Don't pass ExprContext to most decls#1990
Rua wants to merge 16 commits into
immunant:masterfrom
Rua:exprcontext-decl

Conversation

@Rua

@Rua Rua commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Generally speaking, decls don't care about the context they're in, so I don't think there's a point in passing it. The only exception I can see is if a macro expands to a statement expression that declares variables. In that case the variables are being declared inside a const context and their initializers may not be translatable.

@Rua
Rua marked this pull request as draft September 2, 2026 13:27
@Rua
Rua force-pushed the exprcontext-decl branch from 9a96c95 to 2f57dba Compare September 2, 2026 13:51
@Rua
Rua force-pushed the exprcontext-decl branch 2 times, most recently from 9f13e26 to f2c82a3 Compare September 4, 2026 15:35
@Rua
Rua marked this pull request as ready for review September 4, 2026 15:35
@Rua
Rua marked this pull request as draft September 4, 2026 16:05
@Rua
Rua force-pushed the exprcontext-decl branch from f2c82a3 to e51a7f7 Compare September 4, 2026 18:09
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.

1 participant