chore(deps): update dependency apple/swift-syntax to v510 #7
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: "509.1.1"
->from: "510.0.1"
Release Notes
apple/swift-syntax (apple/swift-syntax)
v510.0.1
Compare Source
Compared to 510.0.0 this fixes a possible misaligned memory access.
It also contains the following changes from 510.0.0.
New APIs
SyntaxStringInterpolation.appendInterpolation(_: (some SyntaxProtocol)?)
nil
, nothing will get added to the string interpolation.SyntaxCollection.index(at:)
SyntaxCollection
. This computation is in O(n) andSyntaxCollection
is not subscriptable by an integer.Convenience initializer
ClosureCaptureSyntax.init()
ClosureCaptureSyntax
that takes a concretename
argument and automatically addsequal = TokenSyntax.equalToken()
to it.Convenience initializer
EnumCaseParameterSyntax.init()
EnumCaseParameterSyntax
that takes a concretefirstName
value and addscolon = TokenSyntax.colonToken()
automatically to it.DiagnosticSeverity
andPluginMessage.Diagnostic.Severity
now have new case namedremark
Deprecations
Leaf Node Casts
Same-Type Casts
is
,as
, andcast
overloads onSyntaxProtocol
with same-type conversions are marked as deprecated. The deprecated methods emit a warning indicating the cast will always succeed.Base Node Casts
is
,as
, andcast
methods on base node protocols with base-type conversions are marked as deprecated. The deprecated methods emit a warning that informs the developer that the cast will always succeed and should be done using the base node's initializer.WildcardPatternSyntax.typeAnnotation
typeAnnotation
onWildcardPatternSyntax
was a mistake. UsetypeAnnotation
properties on the outer constructs instead. E.g.PatternBindingListSyntax.typeAnnotation
API-Incompatible Changes
NoteMessage.fixItID
renamed tonoteID
fixItID
and should have been namednoteID
instead. Accesses tofixItID
are deprecated and forward tonoteID
. Any types that conformNoteMessage
it will need to be updated to provide anoteID
instead of afixItID
.DiagnosticSpec.highlight
replaced byhighlights
highlight
prevented users from asserting that a macro highlighted exactly the expected set of syntax nodes. Use ofDiagnosticSpec.init(...highlight:...)
is deprecated and forwards toDiagnosticSpec.init(...highlights:...)
. Migrating fromhighlight
tohighlights
is straightforward; any uses ofDiagnosticSpec.init
which do not specify ahighlight
do not need to change, otherwise:highlight
string should be replaced with a single element array containing the same string without any trailing trivia, e.g.,highlight: "let "
->highlights: ["let"]
.highlight
string should be replaced with an array containing an element for each highlighted node, e.g.,highlight: "struct {}"
->highlights: ["struct", "{}"]
.v510.0.0
Compare Source
New APIs
SyntaxStringInterpolation.appendInterpolation(_: (some SyntaxProtocol)?)
nil
, nothing will get added to the string interpolation.SyntaxCollection.index(at:)
SyntaxCollection
. This computation is in O(n) andSyntaxCollection
is not subscriptable by an integer.Convenience initializer
ClosureCaptureSyntax.init()
ClosureCaptureSyntax
that takes a concretename
argument and automatically addsequal = TokenSyntax.equalToken()
to it.Convenience initializer
EnumCaseParameterSyntax.init()
EnumCaseParameterSyntax
that takes a concretefirstName
value and addscolon = TokenSyntax.colonToken()
automatically to it.DiagnosticSeverity
andPluginMessage.Diagnostic.Severity
now have new case namedremark
Deprecations
Leaf Node Casts
Same-Type Casts
is
,as
, andcast
overloads onSyntaxProtocol
with same-type conversions are marked as deprecated. The deprecated methods emit a warning indicating the cast will always succeed.Base Node Casts
is
,as
, andcast
methods on base node protocols with base-type conversions are marked as deprecated. The deprecated methods emit a warning that informs the developer that the cast will always succeed and should be done using the base node's initializer.WildcardPatternSyntax.typeAnnotation
typeAnnotation
onWildcardPatternSyntax
was a mistake. UsetypeAnnotation
properties on the outer constructs instead. E.g.PatternBindingListSyntax.typeAnnotation
API-Incompatible Changes
NoteMessage.fixItID
renamed tonoteID
fixItID
and should have been namednoteID
instead. Accesses tofixItID
are deprecated and forward tonoteID
. Any types that conformNoteMessage
it will need to be updated to provide anoteID
instead of afixItID
.DiagnosticSpec.highlight
replaced byhighlights
highlight
prevented users from asserting that a macro highlighted exactly the expected set of syntax nodes. Use ofDiagnosticSpec.init(...highlight:...)
is deprecated and forwards toDiagnosticSpec.init(...highlights:...)
. Migrating fromhighlight
tohighlights
is straightforward; any uses ofDiagnosticSpec.init
which do not specify ahighlight
do not need to change, otherwise:highlight
string should be replaced with a single element array containing the same string without any trailing trivia, e.g.,highlight: "let "
->highlights: ["let"]
.highlight
string should be replaced with an array containing an element for each highlighted node, e.g.,highlight: "struct {}"
->highlights: ["struct", "{}"]
.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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.