Option to leak Rust syntax tree to OCaml and later pass it back to Rust
commit3960cc73de2b38bc2cdbcfefa5a647ee3cf129ee
authorKasper Kopec <kasper@fb.com>
Fri, 30 Aug 2019 18:23:36 +0000 (30 11:23 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 30 Aug 2019 18:26:17 +0000 (30 11:26 -0700)
tree3f27ea6e6c8779ea540f9a72b3695d53cea9a165
parent5e4762fc267771437dbbc80b36b8e035990293dc
Option to leak Rust syntax tree to OCaml and later pass it back to Rust

Summary: Previous diff adds the methods, but actually always returns `None`. This adds an option to really leak the tree, and an entry point to pass it back into `ParserErrors`.

Reviewed By: shiqicao

Differential Revision: D17107206

fbshipit-source-id: e270055a6c232e7a94f72e27f475384668ed94c4
hphp/hack/Cargo.lock
hphp/hack/src/parser/errors/ffi/Cargo.toml
hphp/hack/src/parser/ffi/Cargo.toml
hphp/hack/src/parser/ffi/rust_parser_ffi.ml
hphp/hack/src/parser/full_fidelity_parser_env.ml
hphp/hack/src/parser/full_fidelity_parser_errors.ml
hphp/hack/src/parser/full_fidelity_positioned_syntax.ml
hphp/hack/src/parser/rust_parser_errors_ffi.rs
hphp/hack/src/parser/rust_parser_ffi.rs
hphp/hack/src/parser/syntax_tree.rs