Skip to content

Support creation of SKDRequest(Dictionary|Array) from literals #1008

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 23, 2023

IMO this makes it a lot clearer which keys are present in the request dictionaries because we are no longer mutating them on the fly.

IMO this makes it a lot clearer which keys are present in the request dictionaries because we are no longer mutating them on the fly.
@ahoppen ahoppen requested a review from bnbarham December 23, 2023 10:21
@ahoppen ahoppen requested a review from benlangmuir as a code owner December 23, 2023 10:21
if let compileCommand = compileCommand {
req[keys.compilerargs] = compileCommand.compilerArgs
}
let req = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a huge fan of skd. What if SKArray/Dictionary both had an initializer that took a sequence/dictionary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed it to sourcekitd.dictionary(<#dict literal#>)

@ahoppen
Copy link
Member Author

ahoppen commented Jan 9, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit ca47033 into swiftlang:main Jan 9, 2024
@ahoppen ahoppen deleted the ahoppen/skd-array-dictionary-from-literal branch January 9, 2024 21:26
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