Skip to content

[Keypath parsing] Handle space after \ and operators ending in ..#896

Merged
DougGregor merged 1 commit into
swiftlang:mainfrom
DougGregor:keypath-spaces-and-dots
Oct 8, 2022
Merged

[Keypath parsing] Handle space after \ and operators ending in ..#896
DougGregor merged 1 commit into
swiftlang:mainfrom
DougGregor:keypath-spaces-and-dots

Conversation

@DougGregor

Copy link
Copy Markdown
Member

Fixes #888 and rdar://100871146.

@DougGregor DougGregor requested a review from ahoppen as a code owner October 7, 2022 23:17
@DougGregor

Copy link
Copy Markdown
Member Author

@swift-ci please test

Comment on lines +185 to +186
_ = distinctUntilChanged(\ .?.status)
_ = distinctUntilChanged(\.?.status)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Worth checking the structure here? Could even minimize to just \.?.status since the issue was just not parsing the key path correctly. There's a swift-parser-cli debug-init-call mode now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I dunno, we'll have diagnostics if anything goes amiss.

@DougGregor DougGregor merged commit 97f59ed into swiftlang:main Oct 8, 2022
@DougGregor DougGregor deleted the keypath-spaces-and-dots branch October 8, 2022 00:47
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.

KeyPath with space produces a diagnostic

2 participants