Skip to content

[Sema/Index] Resolve #keyPath components so they get handled by indexing, semantic highlighting, etc. #33245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

nathawes
Copy link
Contributor

@nathawes nathawes commented Aug 1, 2020

Unlike \keypath expressions, the components of #keyPath() expressions weren't being resolved, so the index wouldn't pick up references for their qualifying types/properties. Semantic highlighting, cursor info, etc wouldn't work on them either.

Also fixes a code completion bug where it was reporting members from the Swift rather than ObjC side of bridged types (#keyPath(MyClass.someString.count) is invalid, but keyPath(MyClass.someString.length) is valid).

Resolves rdar://problem/61573935

Unlike \keypath expressions, only the property components of #keypath
expressions were being resolved, so index wouldn't pick up references for their
qualifying types.

Also fixes a code completion bug where it was reporting members from the Swift
rather than ObjC side of bridged types.

Resolves rdar://problem/61573935
@nathawes nathawes requested review from xedin and rintaro August 1, 2020 00:53
@nathawes
Copy link
Contributor Author

nathawes commented Aug 1, 2020

@swift-ci please test

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Looks great!

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.

3 participants