New option to check srcloc directives in semdiff
commit35435c47b97593311920cec5b6641b3cd075f6a6
authorAndrew Kennedy <akenn@fb.com>
Wed, 28 Feb 2018 09:20:24 +0000 (28 01:20 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 28 Feb 2018 09:33:52 +0000 (28 01:33 -0800)
treefeb9f22ecac0c4b035d20d05f8f286c198dabee2
parentcae78d25d8be9aeaaf585d9b310434ab59b23d4b
New option to check srcloc directives in semdiff

Summary:
Currently semdiff ignores source location information.
This change introduces an option `--srcloc` that checks that `.srcloc` locations match,
but ignoring column number information. This is a useful tool for checking by hand how
closely HackC and HHVM agree on source locations.

Reviewed By: vladima

Differential Revision: D7030565

fbshipit-source-id: 7cc42b496a8e2c0696f638d4502665fcce8f52ed
hphp/hack/src/hhbc/Hhas_parser_actions.ml
hphp/hack/src/hhbc/emit_pos.ml
hphp/hack/src/hhbc/hhas_parser.mly
hphp/hack/src/hhbc/hhbc_ast.ml
hphp/hack/src/hhbc/hhbc_hhas.ml
hphp/hack/src/hhbc/semdiff/hhbc_destruct.ml
hphp/hack/src/hhbc/semdiff/rhl.ml
hphp/hack/src/hhbc/semdiff/semdiff.ml