Tidy ATNDeserializer.
Remove lots of unnecessary type annotations, replace unnecessarily complicated static initializers, and use "if let" and "guard let" to remove lots of casting. Bring together a couple of hundred lines of copy-paste code between the deserialize and deserializeFromJson paths. Fix some obvious bugs in the deserialize path. This code is entirely unused; we use deserializeFromJson in the autogenerated parsers. I'm inclined to remove deserialize since it was so broken, but I'm leaving it for now, in case someone needs compatibility with ATNs from different language targets and wants to fix it.
This commit is contained in:
parent
676e6f4810
commit
fd58a8c4fd