File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -159,10 +159,10 @@ extension TypeSyntax {
159
159
substituted += " , "
160
160
case . identifier( let identifier) :
161
161
let type : TypeSyntax = " \( raw: identifier) "
162
- guard let substituedType = type. genericSubstitution ( parameters) else {
162
+ guard let substitutedType = type. genericSubstitution ( parameters) else {
163
163
return nil
164
164
}
165
- substituted += substituedType
165
+ substituted += substitutedType
166
166
break
167
167
default :
168
168
// ignore?
@@ -222,7 +222,7 @@ extension DeclGroupSyntax {
222
222
return standins
223
223
}
224
224
225
- func hasMemberFunction( equvalentTo other: FunctionDeclSyntax ) -> Bool {
225
+ func hasMemberFunction( equivalentTo other: FunctionDeclSyntax ) -> Bool {
226
226
for member in memberBlock. members {
227
227
if let function = member. as ( MemberBlockItemSyntax . self) ? . decl. as ( FunctionDeclSyntax . self) {
228
228
if function. isEquivalent ( to: other) {
@@ -257,7 +257,7 @@ extension DeclGroupSyntax {
257
257
func addIfNeeded( _ decl: DeclSyntax ? , to declarations: inout [ DeclSyntax ] ) {
258
258
guard let decl else { return }
259
259
if let fn = decl. as ( FunctionDeclSyntax . self) {
260
- if !hasMemberFunction( equvalentTo : fn) {
260
+ if !hasMemberFunction( equivalentTo : fn) {
261
261
declarations. append ( decl)
262
262
}
263
263
} else if let property = decl. as ( VariableDeclSyntax . self) {
You can’t perform that action at this time.
0 commit comments