Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoppen committed Oct 29, 2024
1 parent d82d736 commit 5985355
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/SwiftFormat/Rules/UseShorthandTypeNames.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {
switch node.name.text {
case "Array":
guard let argument = genericArgumentList.firstAndOnly,
case .type(let typeArgument) = argument else {
case .type(let typeArgument) = argument.argument else {
newNode = nil
break
}
Expand All @@ -62,7 +62,7 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {
case "Dictionary":
guard let arguments = exactlyTwoChildren(of: genericArgumentList),
case .type(let type0Argument) = arguments.0.argument,
caes .type(let type1Argument) = arguments.1.argument else {
case .type(let type1Argument) = arguments.1.argument else {
newNode = nil
break
}
Expand All @@ -79,7 +79,7 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {
break
}
guard let argument = genericArgumentList.firstAndOnly,
case .type(let typeArgument) = argument else {
case .type(let typeArgument) = argument.argument else {
newNode = nil
break
}
Expand Down Expand Up @@ -143,7 +143,7 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {
switch expression.baseName.text {
case "Array":
guard let argument = genericArgumentList.firstAndOnly,
case .type(let typeArgument) = argument else {
case .type(let typeArgument) = argument.argument else {
newNode = nil
break
}
Expand Down Expand Up @@ -172,7 +172,7 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {

case "Optional":
guard let argument = genericArgumentList.firstAndOnly,
case .type(let typeArgument) = argument else {
case .type(let typeArgument) = argument.argument else {
newNode = nil
break
}
Expand Down

0 comments on commit 5985355

Please sign in to comment.