Skip to content

Commit

Permalink
Disable CapitalSelfFunctionCallRetainer workaround for Swift >= 5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Aug 15, 2023
1 parent 9a0a044 commit 1345db7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ final class CapitalSelfFunctionCallRetainer: SourceGraphMutator {
}

func mutate() {
guard SwiftVersion.current.version.isVersion(lessThan: "5.9") else { return }

for decl in graph.declarations(ofKinds: [.struct, .class]) {
guard decl.hasCapitalSelfFunctionCall else { continue }
decl.declarations
Expand Down

0 comments on commit 1345db7

Please sign in to comment.