Skip to content

Safe mode: fix panic when annotation doesn't have a name#146

Merged
NathanLovato merged 1 commit intoGDQuest:mainfrom
fstxz:annotation-name
Oct 10, 2025
Merged

Safe mode: fix panic when annotation doesn't have a name#146
NathanLovato merged 1 commit intoGDQuest:mainfrom
fstxz:annotation-name

Conversation

@fstxz
Copy link
Copy Markdown
Contributor

@fstxz fstxz commented Oct 10, 2025

Fixes panic mentioned in #145. Annotation may not have an identifier as the first child due to parsing error, for example.

I also moved input tree's postprocess() to Formatter::finish(), to avoid doing unnecessary work when safe mode is disabled.

@NathanLovato NathanLovato merged commit 60b3ff7 into GDQuest:main Oct 10, 2025
1 check passed
@NathanLovato
Copy link
Copy Markdown
Contributor

Thank you very much as always!

@fstxz fstxz deleted the annotation-name branch October 10, 2025 19:49
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