Skip to content
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

Implement the final approved syntax for SE-227 identity key paths. #19382

Merged
merged 1 commit into from
Sep 20, 2018

Conversation

jckarter
Copy link
Contributor

\.self is the final chosen syntax. Implement support for this syntax, and remove the stopgap builtin and WritableKeyPath._identity property that were in place before.

@jckarter
Copy link
Contributor Author

@swift-ci Please test

ArrayRef<Identifier> SubscriptLabels;
ArrayRef<ProtocolConformanceRef> SubscriptHashableConformances;
Type ComponentType;
llvm::PointerIntPair<Type, 1, unsigned> ComponentTypeAndKindHi;
Copy link
Contributor

Choose a reason for hiding this comment

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

Component is already 9 words, so rather than cramming things in even tighter here it may be worth just making a separate field. (You could probably also shrink things down by taking the counts out of SubscriptLabels and SubscriptHashableConformances, getting down to 8 words and still having space left over for the kind.)

@slavapestov
Copy link
Contributor

@jckarter What about tuple keypaths? :)

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - a06c9f7eb653f1691e38fa4cb58775ea70e3a131

`\.self` is the final chosen syntax. Implement support for this syntax, and remove the stopgap builtin and `WritableKeyPath._identity` property that were in place before.
@jckarter jckarter force-pushed the identity-key-path-syntax branch from a06c9f7 to 93b5de6 Compare September 19, 2018 18:48
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - a06c9f7eb653f1691e38fa4cb58775ea70e3a131

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - a06c9f7eb653f1691e38fa4cb58775ea70e3a131

@jckarter
Copy link
Contributor Author

@swift-ci Please test OS X

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 93b5de6

@jckarter
Copy link
Contributor Author

@swift-ci Please smoke test OS X

@jckarter jckarter merged commit 7d78b09 into swiftlang:master Sep 20, 2018
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.

4 participants