Update dependency swiftlang/swift-syntax to v602 #129
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: "601.0.1"->from: "602.0.0"Release Notes
swiftlang/swift-syntax (swiftlang/swift-syntax)
v602.0.0Compare Source
New APIs
SwiftLexicalLookup- A new Swift unqualified lookup library$xand generic parameters inside extensions. Furthermore, in the future, once the compiler adoptsSwiftLexicalLookupand it becomes the canonical implementation, results produced by the query will be guaranteed to be correct.DiagnosticMessagehas a new optional property,category, that provides a category name and documentation URL for a diagnostic.[#CategoryName], and can print categories as "footnotes" with itscategoryFootnotesmethod.categoryproperty has optional type, and there is a default implementation that returnsnil. Types that conform toDiagnosticMessagecan choose to implement this property and provide a category when appropriate.DiagnosticsFormatterhas a new method,formattedMessage, that formats a diagnostic message without any corresponding syntax node.FixIt.Changehas a new casereplaceTextthat performs a textual replacement of a range of text with another string.FixIt.Changecases provide structuredmodifications to syntax trees, such as replacing specific notes. Some
clients provide Fix-Its that don't fit well into this structured model. The
replaceTextcase makes it possible for such clients to express Fix-Its.API Behavior Changes
Deprecations
API-Incompatible Changes
ExpandEditorPlaceholdersToTrailingClosureshas changed toExpandEditorPlaceholdersToLiteralClosuresformatargument to this rewriter. Additionally clients that support nested placeholders may request that the entire expanded closure be wrapped in an outer placeholder, e.g.<#{ <#foo#> in <#Bar#> }#>.ExpandEditorPlaceholdersToTrailingClosureswithExpandEditorPlaceholdersToLiteralClosures. The initializer does not need to change:.init(indentationWidth:)on the new type provides the same behavior as the old type.SyntaxArenaandParsingSyntaxArenahas changed to SPISyntaxArenaand the subclasses were only meant to be used when dealing withRawSyntaxwhich is also SPI.SyntaxArenaorParsingSyntaxArenadirectly.public, most initializers were already SPI and there was no way to retrive them from existing types via public API.SyntaxChildrenIndexis no longerExpressibleByNilLiteralnilused to represent the end index. However, due to a change in the internal structure, the end index must now be retrieved from the collection.SyntaxChildren.endIndexinstead.ExpressibleByNilLiteralwas a mistake. In general,Collection.Indexshould only be created and managed by the collection itself. For example,Collection.index(after:)exists, butIndex.advanced(by:)does not.Some cases in
AttributeSyntax.Argumentschoices and related types has been removedAttributeSyntaxwith.argumentList(LabeledExprListSyntax).AttributeSyntax.Arguments.argumentList(LabeledExprListSyntax)instead.AttributeSyntax.Arguments:token(TokenSyntax),string(StringLiteralExprSyntax),conventionArguments(ConventionAttributeArgumentsSyntax),conventionWitnessMethodArguments(ConventionWitnessMethodAttributeArgumentsSyntax),opaqueReturnTypeOfAttributeArguments(OpaqueReturnTypeOfAttributeArgumentsSyntax),exposeAttributeArguments(ExposeAttributeArgumentsSyntax),underscorePrivateAttributeArguments(UnderscorePrivateAttributeArgumentsSyntax), andunavailableFromAsyncArguments(UnavailableFromAsyncAttributeArgumentsSyntax). Removed Syntax kinds:ConventionAttributeArgumentsSyntax,ConventionWitnessMethodAttributeArgumentsSyntax,OpaqueReturnTypeOfAttributeArgumentsSyntax,ExposeAttributeArgumentsSyntax,UnderscorePrivateAttributeArgumentsSyntax, andUnavailableFromAsyncAttributeArgumentsSyntax.ExpandEditorPlaceholdersToLiteralClosures&CallToTrailingClosuresnow take aSyntaxparameterSyntaxand return aSyntax?. If a non-function-like syntax node is passed,nilis returned. The previousFunctionCallExprSyntaxoverloads are deprecated.Syntax(...)initializer call for the argument, and cast the result with.as(...)if necessary.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.