         "public extension \(record.name.swift) {"
         Code.block {
             Code.loop(over: record.signals.filter { signalSanityCheck($0) == nil }) { signal in
+                
                 commentCode(signal)
                 "/// - Note: This function represents signal `\(signal.name)`"
                 "/// - Parameter flags: Flags"

        return "return output.rawValue"
    case is GIR.Enumeration:
        return "return output.rawValue"
    default: // Treat as fundamental (if not a fundamental, report error)
        return "return \(signal.returns.typeRef.cast(expression: "output", from: signal.returns.swiftReturnRef))"
    }

        case is GIR.Enumeration:
            return GIR.uint32Type.typeName
        default: // Treat as fundamental (if not a fundamental, report error)
            return self.callbackArgumentTypeName
        }
    }
    
    func swiftSignalArgumentConversion(at index: Int) -> String {
        switch knownType {
        case is GIR.Record:
            return typeRef.type.swiftName + "Ref" + "(raw: arg\(index))"
        case let type as GIR.Alias: // use containedTypes
            return ""
        case is GIR.Bitfield:
            return self.argumentTypeName + "(arg\(index))"
        case is GIR.Enumeration:
            return self.argumentTypeName + "(arg\(index))"
        case nil where swiftReturnRef == GIR.stringRef:
            return swiftReturnRef.cast(expression: "arg\(index)", from: typeRef) + "!"
        default: // Treat as fundamental (if not a fundamental, report error)
            return swiftReturnRef.cast(expression: "arg\(index)", from: typeRef)
        }
    }
}
