Output verbosity control
commit8c558499118ffde951ae29540cac23a1c56968aa
authorMistral Orhan Jean-Pierre Contrastin <mojpc2@fb.com>
Fri, 3 Jul 2020 08:16:49 +0000 (3 01:16 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 3 Jul 2020 08:18:57 +0000 (3 01:18 -0700)
tree6781a67e8e3ba2b1b172a9af390ae39c7a368b4c
parent70a1e41881dfd605ed2c78b8b8753c600c498ed7
Output verbosity control

Summary:
- Remove the typed AST printing option in favour of using --tast for debugging.
- Make `--ifc` take an integer which designates the verbosity of the output.
- Levels:
  + 0: As the user would see them (at the moment this is just simplified constraints)
  + 1: Global constraint solving results
  + 2: Function/method constraint extraction results
  + 3: Declaration analysis results

Reviewed By: mpu

Differential Revision: D22097853

fbshipit-source-id: 28e571f4d0df817e7c08b8d58999137a8de6b0a2
12 files changed:
hphp/hack/src/hh_single_type_check.ml
hphp/hack/src/ifc/ifc.ml
hphp/hack/src/ifc/ifc_solver.ml
hphp/hack/test/ifc/basics.php.exp
hphp/hack/test/ifc/calls_basics.php.exp
hphp/hack/test/ifc/dune
hphp/hack/test/ifc/generic.php.exp
hphp/hack/test/ifc/property.php.exp
hphp/hack/test/ifc/purpose.php.exp
hphp/hack/test/ifc/recursive_class.php.exp
hphp/hack/test/ifc/unpolicied_fields.php.exp
hphp/hack/test/ifc/vec.php.exp