Fix position for enum atoms in Tast
commit5b8c71a85f1efa0a9090b93932b337c050ac26eb
authorVassil Mladenov <vmladenov@fb.com>
Mon, 22 Mar 2021 18:45:08 +0000 (22 11:45 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 22 Mar 2021 18:48:55 +0000 (22 11:48 -0700)
treec09612ce031e5d13c50b7314813578160a15e51d
parentb4c84278247641df61e48c787b618622880d5b0d
Fix position for enum atoms in Tast

Summary: Previously, the Tast.EnumAtom was getting the position of the entire call expression.

Reviewed By: vsiles

Differential Revision: D27208787

fbshipit-source-id: 20fb47ba909f36bef2f0d281b91614b8a249d1b4
hphp/hack/src/typing/typing.ml
hphp/hack/test/enum_atom/typing/atom.php.exp
hphp/hack/test/enum_atom/typing/atom1.php.exp
hphp/hack/test/enum_atom/typing/atom_sugar.php.exp
hphp/hack/test/enum_atom/typing/atom_sugar_member_selection.php.exp