-
Notifications
You must be signed in to change notification settings - Fork 5
Update dependency swiftlang/swift-syntax to v601 #106
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quality Gate Passed Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
⚠️ 1 public change detected ⚠️
Comparing renovate/swiftlang-swift-syntax-601.x to main
🔀 1 Modification
Package.swift
.dependencies
🔀 Modified
// From .package(url: "https://github.com/swiftlang/swift-syntax", "600.0.1"..<"601.0.0") // To .package(url: "https://github.com/swiftlang/swift-syntax", "601.0.0"..<"602.0.0")
Analyzed targets: FileHandlingModule, PADCore, PADLogging, PADOutputGenerator, PADPackageFileAnalyzer, PADProjectBuilder, PADSwiftInterfaceDiff, PADSwiftInterfaceFileLocator, ShellModule, SwiftPackageFileHelperModule
goergisn
goergisn
approved these changes
Mar 30, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
from: "600.0.1"->from: "601.0.0"Release Notes
swiftlang/swift-syntax (swiftlang/swift-syntax)
v601.0.0Compare Source
New APIs
SameTypeRequirementSyntaxhas a newRightTypenested type.ExprSyntaxor aTypeSyntax.SameTypeRequirementSyntaxhas a newLeftTypenested type.ExprSyntaxor aTypeSyntax.GenericArgumentSynaxhas a newArgumentnested type.ExprSyntaxor aTypeSyntax.GenericParameterSyntaxnow has a newspecifierproperty.letor aneach. Thespecifierproperty captures the token representing which one was parsed.IntegerLiteralExprSyntaxandFloatLiteralExprSyntaxnow have a computedrepresentedLiteralValueproperty.SyntaxProtocolnow has a methodancestorOrSelf.condition.Errorprotocol now has anasDiagnostics(at:)method.DiagnosticsErrorandDiagnosticMessageinstances or providing its ownDiagnosticas needed.Added a new library
SwiftIfConfig.#ifconditions and determining which regions of a syntax tree are active according to a given build configuration.SwiftBasicFormatadds a methodindented(by:)to all syntax node types.Trivia, optionally including the first line.Parser.ExperimentalFeatureshas a newinit?(name: String)initializer.Parser.ExperimentalFeaturesvalue that matches the experimental parser feature with the given name. The name must be spelled the same way as it is when passed to the compiler using the-enable-experimental-featureflag.API Behavior Changes
SyntaxProtocol.trimmeddetaches the nodeDeprecations
GenericParameterSyntaxdeprecatedeachKeywordin favor ofspecifierspecifieris now used to grab either theeachkeyword for a generic parameter or theletkeyword.IncrementalEditdeprecated in favor ofSourceEditIncrementalEditis being dropped forSourceEdit.SourceEdithas deprecated compatibility layers to make it API-compatible withIncrementalEditClosureCaptureSyntax.init(leadingTrivia:specifier:name:equal:expression:trailingComma:trailingTrivia:)deprecated in favor of a newClosureCaptureSyntax.init(leadingTrivia:_:specifier:_:name:_:initializer:_:trailingComma:_:trailingTrivia:)initializer.ClosureCaptureSyntaxnow has aninitializerproperty instead ofequalandexpression. Additionally, thenameproperty is no longer optional.IndenterinSwiftSyntaxBuilderhas been deprecated in favor of the newindented(by:)inSwiftBasicFormat.indented(by:)method is more intuitive to use than aSyntaxRewriter. Aside fromBasicFormat, there are no other publicSyntaxRewriterclasses in the package.API-Incompatible Changes
SameTypeRequirementSyntax.rightTypehas changed types fromTypeSyntaxtoSameTypeRequirementSyntax.RightTypeExprSyntaxor aTypeSyntax.SameTypeRequirementSyntax.leftTypehas changed types fromTypeSyntaxtoSameTypeRequirementSyntax.LeftTypeExprSyntaxor aTypeSyntax.GenericArgumentSyntax.argumenthas changed types fromTypeSyntaxtoGenericArgumentSyntax.ArgumentExprSyntaxor aTypeSyntax.Moved
RadixandIntegerLiteralExprSyntax.radixfromSwiftRefactortoSwiftSyntax.literal.text.FixIt.Changegained a new casereplaceChild(data:).FixIt.Change, cover the new case.ClosureCaptureSyntax.nameis no longer optional.ClosureCaptureSyntaxnode structure,nameproperty is non-optional.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.