Extend Rust I/O test to test DeclMode parsernightly-2019.05.16
commitef5018349d2790e69eb474006464166aaeb3826a
authorLeo Osvald <leoo@fb.com>
Thu, 16 May 2019 00:56:25 +0000 (15 17:56 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 16 May 2019 01:00:20 +0000 (15 18:00 -0700)
treecc0130ba1bc05ae60cc1cfd969936d6c8f034cc2
parentb756588e268659b0f525584f534b0c6488b0bac9
Extend Rust I/O test to test DeclMode parser

Summary:
- add missing entry points to Rust DeclMode parser from OCaml code
- extend `rust_ocaml` test to run tests with DeclModeParser if `--decl-mode`
  (don't require strict structural identity--compare JSONs only--because we do not  uniquely represent empty source texts yet)

Reviewed By: dabek

Differential Revision: D15267567

fbshipit-source-id: a1da29bb14cef657a1d1692dbb76a9a14daadfc5
12 files changed:
hphp/hack/src/generate_full_fidelity.ml
hphp/hack/src/parser/full_fidelity_editable_positioned_syntax.ml
hphp/hack/src/parser/full_fidelity_editable_syntax.ml
hphp/hack/src/parser/full_fidelity_minimal_syntax.ml
hphp/hack/src/parser/full_fidelity_positioned_syntax.ml
hphp/hack/src/parser/rust_parser_ffi.ml
hphp/hack/src/parser/rust_parser_ffi.rs
hphp/hack/src/parser/rust_to_ocaml.rs
hphp/hack/src/parser/smart_constructors/declModeSmartConstructors.ml
hphp/hack/src/parser/syntax_sig.ml
hphp/hack/src/typing/full_fidelity_typed_positioned_syntax.ml
hphp/hack/test/rust/rust_ocaml_test.ml