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

Update lifetime dependence syntax #2564

Merged
merged 3 commits into from
Mar 25, 2024
Merged

Update lifetime dependence syntax #2564

merged 3 commits into from
Mar 25, 2024

Conversation

meg-gupta
Copy link
Contributor

@meg-gupta meg-gupta commented Mar 24, 2024

Pitch - apple/swift-evolution#2305

Update spellings to:
dependsOn(paramName...) and dependsOn(scoped paramName...) syntax

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

Please test with following pull request:
apple/swift#72506

@swift-ci Please test

1 similar comment
@meg-gupta
Copy link
Contributor Author

Please test with following pull request:
apple/swift#72506

@swift-ci Please test

@meg-gupta
Copy link
Contributor Author

Please test with following pull request:
apple/swift#72506

@swift-ci Please test

@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test windows platform

@meg-gupta meg-gupta merged commit ca20739 into main Mar 25, 2024
3 checks passed
@meg-gupta meg-gupta deleted the updatelifetimesyntax branch March 25, 2024 00:55
Sources/SwiftParser/Types.swift Show resolved Hide resolved
SPECIFIER_PARSING: while canHaveParameterSpecifier {
if let (_, specifierHandle) = self.at(anyIn: SimpleTypeSpecifierSyntax.SpecifierOptions.self) {
specifiers.append(parseSimpleTypeSpecifier(specifierHandle: specifierHandle))
} else if self.at(TokenSpec(.dependsOn)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be simplified slightly to

} else if self.at(.keyword(.dependsOn)) {

meg-gupta added a commit that referenced this pull request Mar 25, 2024
meg-gupta added a commit that referenced this pull request Mar 25, 2024
meg-gupta added a commit that referenced this pull request Mar 25, 2024
meg-gupta added a commit that referenced this pull request Mar 25, 2024
meg-gupta added a commit that referenced this pull request Mar 26, 2024
meg-gupta added a commit that referenced this pull request Mar 26, 2024
meg-gupta added a commit that referenced this pull request Mar 27, 2024
Update lifetime dependence syntax
meg-gupta added a commit that referenced this pull request Mar 27, 2024
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.

None yet

2 participants