We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfe2ffb commit c3828f6Copy full SHA for c3828f6
Sources/SwiftComplexityCore/Analysis/FunctionDetector.swift
@@ -26,6 +26,10 @@ class FunctionDetector: SyntaxVisitor {
26
return detectedFunctions
27
}
28
29
+ override func visit(_ node: ProtocolDeclSyntax) -> SyntaxVisitorContinueKind {
30
+ return .skipChildren
31
+ }
32
+
33
public override func visit(_ node: FunctionDeclSyntax) -> SyntaxVisitorContinueKind {
34
let name = extractFunctionName(from: node)
35
let signature = extractFunctionSignature(from: node)
0 commit comments