Hi Colin,
I'm not certain, but you may well be right that we don't currently serialize / deserialize OriginalMapping objects.
We do, however, have logic that serializes and deserializes the entire compiler state so that compilation can be broken up into 3 stages for large projects that take too long for a single action and to save repeated work when multiple output localizations are needed.
That serialization / deserialization is at the moment a combination of a fully protocol buffer representation of the AST (Abstract Syntax Tree) and standard Java serialization for the rest of the compiler's state. This state includes sourcemap information, though I'm not 100% certain the particular `OriginalMapping` message is used.
This is a rather ugly solution that was chosen only because it was the most expedient. There is, though, a general trend to move more and more of the serialized state into protocol buffers, because that is the preferred data serialization format at Google.
So, I think the answer to your question is: No, we wouldn't accept a PR that convered `OriginalMapping` to an AutoValue.
That would be going against the direction we generally want to go.
Now, perhaps I'm wrong, and `OriginalMapping` really is only used as some kind of temporary data object, so having it be a proto is wasted effort.
If so, I'm afraid the burden would be on the PR author to demonstrate how we can be certain of this, exactly, and even more importantly, show that making the change to AutoValue would give some benefit that is worth the effort and risk of making the change.
Thanks for asking.
Best regards,
Bradford