Skip to content

Fix #523, support align(default)#532

Merged
WebFreak001 merged 4 commits into
dlang-community:masterfrom
0-v-0:master
May 10, 2026
Merged

Fix #523, support align(default)#532
WebFreak001 merged 4 commits into
dlang-community:masterfrom
0-v-0:master

Conversation

@0-v-0
Copy link
Copy Markdown
Contributor

@0-v-0 0-v-0 commented Apr 8, 2026

No description provided.

Comment thread src/dparse/parser.d
mixin(tokenCheck!"(");
mixin(parseNodeQ!("node.assignExpression", "AssignExpression"));
if (currentIs(tok!"default"))
advance();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is implicitly stored in the AST now (due to it having the tokens slice), but it's missing a boolean getter (e.g. bool isExplicitDefault()) inside AlignAttribute

The formatter.d code also needs to be adjusted to re-emit it in case it was explicit default.

Comment thread src/dparse/parser.d Outdated
0-v-0 and others added 2 commits April 11, 2026 19:16
Co-authored-by: Jan Jurzitza <gh@webfreak.org>
@WebFreak001 WebFreak001 merged commit 1822eb0 into dlang-community:master May 10, 2026
4 of 5 checks passed
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