     let head = bitfieldTypeHead(bf, indentation: indent)
     let bitfields = bf.members
     let names = Set(bitfields.map(\.name.camelCase.swiftQuoted))
-    let deprecated = bitfields.lazy.filter { !names.contains($0.name.swiftName) }
-    let fields = bitfields.map(bitfieldValueCode(bf, indent)).joined(separator: "\n") + "\n\n"
-                    + deprecated.map(bitfieldDeprecated(bf, indent)).joined(separator: "\n")
+//    let deprecated = bitfields.lazy.filter { !names.contains($0.name.swiftName) }
+    let fields = bitfields.map(bitfieldValueCode(bf, indent)).joined(separator: "\n") // + "\n\n"
+                    // + deprecated.map(bitfieldDeprecated(bf, indent)).joined(separator: "\n")
     let tail = "\n}\n\n"
     let code = head + fields + tail
     return code

/// Swift code representation of an enum value
public func valueCode(_ indentation: String) -> (GIR.Enumeration.Member) -> String {
    return { (m: GIR.Enumeration.Member) -> String in
        swiftCode(m, indentation + "static let \(m.name.camelCase.swiftQuoted) = \(m.typeRef.type.ctype.swift) /* \(m.value) */", indentation: indentation)
    }
}

/// Swift code representation of an enum value
public func valueDeprecated(_ indentation: String, typeName: String) -> (GIR.Enumeration.Member) -> String {
    return { (m: GIR.Enumeration.Member) -> String in
        swiftCode(m, indentation + "@available(*, deprecated) static let \(m.name.swiftName) = \(typeName).\(m.name.camelCase.swiftQuoted) /* \(m.typeRef.type.ctype) */", indentation: indentation)
    }
}


/// Swift code type definition of a bitfield
public func bitfieldTypeHead(_ bf: GIR.Bitfield, enumRawType: String = "UInt32", indentation: String) -> String {
    let bftype = bf.typeRef.type.swiftName.swift
    let doubleIndentation = indentation + indentation
    let tripleIndentation = indentation + doubleIndentation
    return swiftCode(bf, "public struct \(bf.escapedName.swift): OptionSet {\n" + indentation +

public func bitfieldValueCode(_ bf: GIR.Bitfield, _ indentation: String) -> (GIR.Bitfield.Member) -> String {
    let type = bf.escapedName.swift
    return { (m: GIR.Enumeration.Member) -> String in
        let value = String(m.value)
        let cID: String
        if let id = m.typeRef.identifier, !id.isEmpty {
            cID = id
        } else {
            cID = value
        }
        let comment = cID == value ? "" : (" // " + cID)
        let cast = type + "(" + value + ")"
        let code = swiftCode(m, indentation + "public static let " + m.name.camelCase.swiftQuoted + " = " + cast + comment, indentation: indentation)
        return code
    }
}


///// Deprecated Swift code representation of a bit field value
//public func bitfieldDeprecated(_ bf: GIR.Bitfield, _ indentation: String) -> (GIR.Bitfield.Member) -> String {
//    let type = bf.escapedName.swift
//    return { (m: GIR.Enumeration.Member) -> String in
//        swiftCode(m, indentation + "@available(*, deprecated) public static let \(m.name.swiftName) = \(type)(\(m.value)) /* \(m.typeRef.type.ctype) */", indentation: indentation)
//    }
//}


/// Swift protocol representation of a record/class as a wrapper of a pointer
