Forbid empty shape field names
commit2172bc41144b880454f8ae166380c22d887e036e
authorJames Wu <jjwu@fb.com>
Sun, 16 Sep 2018 07:19:23 +0000 (16 00:19 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Sun, 16 Sep 2018 07:27:59 +0000 (16 00:27 -0700)
treedbc1e24578db407532e447662629afb8184000a1
parentb0791c43806fcb864ca219daf10a8e3f856cae84
Forbid empty shape field names

Reviewed By: vassilmladenov

Differential Revision: D9777852

fbshipit-source-id: c5a3654e386957be0ab0ea0e29e26802520bd8ee
hphp/hack/src/parser/full_fidelity_ast.ml
hphp/hack/src/parser/full_fidelity_syntax_error.ml
hphp/hack/test/full_fidelity/cases/test_shapes.php.errors.exp
hphp/hack/test/typecheck/empty_shape_field_name.php [new file with mode: 0644]
hphp/hack/test/typecheck/empty_shape_field_name.php.exp [new file with mode: 0644]
hphp/hack/test/typecheck/shapes_cc_12.php.exp
hphp/hack/test/typecheck/shapes_cc_13.php.exp
hphp/test/slow/empty_shape_field_name.php [new file with mode: 0644]
hphp/test/slow/empty_shape_field_name.php.expectf [new file with mode: 0644]
hphp/test/slow/shapes/bare_shape_key.php.expectregex
hphp/test/slow/type_annotation/shape_usage_with_optional_field.php.expectregex