Converts a parse result to a plain object. The resulting object can be sent across worker threads.
Converts a plain object to a parse result. The included AST node can then be used in the main thread. Calling this method on objects that have not been dehydrated first will result in undefined behavior.
The hydrator service is responsible for allowing AST parse results to be sent across worker threads.