Skip to content

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

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

transpile: Don't pass ExprContext to most decls#1990
Rua wants to merge 5 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 2 times, most recently from 2f57dba to 9f13e26 Compare September 4, 2026 13:53
@Rua
Rua force-pushed the exprcontext-decl branch 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
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