Parse attributes on type consts
commit2d49cbfcac079f39a627b8e7f952295a3315aa10
authorVassil Mladenov <vmladenov@fb.com>
Mon, 4 Feb 2019 19:13:03 +0000 (4 11:13 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 4 Feb 2019 19:16:30 +0000 (4 11:16 -0800)
tree4e07ad95d84e372a08d0624725f2381d0eec788e
parent1ab8f7b6a14b31731667a02544d2e26daa2a3679
Parse attributes on type consts

Summary: For enforcement with is and as expressions, this adds parsing support for attributes on type constants

Reviewed By: oulgen

Differential Revision: D13667108

fbshipit-source-id: 265fd075cb911dbca4f319a1eaa91ef87a153e12
21 files changed:
hphp/hack/src/facts/flatten_smart_constructors.ml
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/src/parser/ast.ml
hphp/hack/src/parser/full_fidelity_ast.ml
hphp/hack/src/parser/full_fidelity_declaration_parser.ml
hphp/hack/src/parser/full_fidelity_syntax.ml
hphp/hack/src/parser/full_fidelity_syntax_type.ml
hphp/hack/src/parser/full_fidelity_validated_syntax.ml
hphp/hack/src/parser/js/full_fidelity_editable.js
hphp/hack/src/parser/js/full_fidelity_schema.json
hphp/hack/src/parser/parserSig.ml
hphp/hack/src/parser/schema/schema_definition.ml
hphp/hack/src/parser/smart_constructors/smartConstructors.ml
hphp/hack/src/parser/smart_constructors/smartConstructorsWrappers.ml
hphp/hack/src/parser/smart_constructors/syntaxSmartConstructors.ml
hphp/hack/src/parser/smart_constructors/verifySmartConstructors.ml
hphp/hack/src/parser/syntax_sig.ml
hphp/hack/test/full_fidelity/cases/test_refified_generic_attributes.php.sexp.exp
hphp/hack/test/full_fidelity/cases/test_type_const.php.sexp.exp
hphp/hack/test/full_fidelity/cases/type_constant_attributes.php [new file with mode: 0644]
hphp/hack/test/full_fidelity/cases/type_constant_attributes.php.sexp.exp [new file with mode: 0644]