An appropriate solution might be to prepend the encoder/decoder function signatures with fileprivate which will restrict their exposure to their defining source files.

I'd be happy to put up a PR if this sounds reasonable!

lobianco
changed the title
Swift: generating multiple output files can result in `Invalid redeclaration of 'newJSONDecoder()'`Swift: generating multiple output files can result in `Invalid redeclaration` errorsFeb 6, 2019