@@ -36,7 +36,7 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {
36
36
37
37
// Ensure that all arguments in the clause are shortened and in expected-format by visiting
38
38
// the argument list, first
39
- let argList = super . visit ( genArg. arguments) as! GenericArgumentListSyntax
39
+ let argList = visit ( genArg. arguments) as! GenericArgumentListSyntax
40
40
// Store trivia of the long form type to pass to the new shorthand type later
41
41
let trivia = retrieveTrivia ( from: node)
42
42
@@ -61,10 +61,9 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {
61
61
62
62
// Visits all potential long forms interpreted as expressions
63
63
public override func visit( _ node: SpecializeExprSyntax ) -> ExprSyntax {
64
- let argList = super . visit ( node. genericArgumentClause. arguments) as! GenericArgumentListSyntax
64
+ let argList = visit ( node. genericArgumentClause. arguments) as! GenericArgumentListSyntax
65
65
guard let exp = node. expression as? IdentifierExprSyntax else { return node }
66
66
let trivia = retrieveTrivia ( from: node)
67
-
68
67
switch exp. identifier. text {
69
68
case " Array " :
70
69
guard argList. count == 1 else { return node }
@@ -199,7 +198,7 @@ public final class UseShorthandTypeNames: SyntaxFormatRule {
199
198
guard let simpleTypeId = member. baseType as? SimpleTypeIdentifierSyntax else { return nil }
200
199
guard let genArgClause = simpleTypeId. genericArgumentClause else { return nil }
201
200
// Node will only change if an argument in the generic argument clause is shortened
202
- let argClause = super . visit ( genArgClause) as! GenericArgumentClauseSyntax
201
+ let argClause = visit ( genArgClause) as! GenericArgumentClauseSyntax
203
202
let idExp = SyntaxFactory . makeIdentifierExpr ( identifier: simpleTypeId. name,
204
203
declNameArguments: nil )
205
204
let specialExp = SyntaxFactory . makeSpecializeExpr ( expression: idExp,
0 commit comments