     let scall = callSetter(doubleIndent, record, ptr: ptrName)
     let ret = returnCode(doubleIndent, ptr: ptrName)
     return { (pair: GetterSetterPair) -> String in
-        let name = pair.name.swiftName
+        let name = pair.name.swiftQuoted
         let getter = pair.getter
         let gs: GIR.Method
         let type: String

            gs = setter!
        }
        let property: GIR.CType
        if let prop = record.properties.filter({ $0.name.swiftName == name }).first {
            property = prop
        } else {
            property = gs

public func fieldCode(_ indentation: String, record: GIR.Record, publicDesignation: String = "public ", ptr: String = "_ptr") -> (GIR.Field) -> String {
    let doubleIndent = indentation + indentation
    return { (field: GIR.Field) -> String in
        let name = field.name.swiftQuoted
        let swname = name.camelCase
        guard !field.isPrivate else { return indentation + "// var \(swname) is unavailable because \(name) is private\n" }
        let containedType = field.containedTypes.first ?? field
        let pointee = ptr + ".pointee." + name
