Update dependency swiftlang/swift-syntax to v601 #106
Merged
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.