mutating func decode()

in Sources/llbuild2fx/CommandLineArgsCoder.swift [690:698]


    mutating func decode(_ type: Bool.Type) throws -> Bool {
        let value = try data.decode(key: codingPath + [nextIndexedKey()])
        guard value == "true" || value == "false" else {
            throw DecodingError.typeMismatch(
                Bool.Type.self,
                DecodingError.Context(codingPath: codingPath + [nextIndexedKey()], debugDescription: "invalid value"))
        }
        return value == "true"
    }