Fix Swift 6.2 parser compatibility for underscore property access#8
Open
objectiveous wants to merge 1 commit into
Open
Fix Swift 6.2 parser compatibility for underscore property access#8objectiveous wants to merge 1 commit into
objectiveous wants to merge 1 commit into
Conversation
Swift 6.2's new parser requires backtick escaping for the `_` property name in closure contexts. Without this fix, the build fails with: "Expected name in member access" errors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
yocontra
added a commit
to veil-labs-inc/ApparishSwift
that referenced
this pull request
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_property names with backticks in closure contexts to fix Swift 6.2's new parser requirementsChanges
The Swift 6.2 parser requires backtick escaping for property names that are
_(underscore) when accessed in closures. Changed 7 occurrences inmergeTokens()function:$0._.stress→$0.\_`.stress`$0._.currency→$0.\_`.currency`$0._.rating→$0.\_`.rating`token._.prespace→token.\_`.prespace`$0._.num_flags→$0.\_`.num_flags`tokens.first?._.is_head→tokens.first?.\_`.is_head`tokens.first?._.prespace→tokens.first?.\_`.prespace`Test plan
🤖 Generated with Claude Code