Generate SyntaxKindWrapper for smart constructors
commita9e8cfff796f86f254a89a422948a1d9b3daf1cb
authorRuslan Sakevych <ruslans@fb.com>
Mon, 12 Feb 2018 16:00:51 +0000 (12 08:00 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 12 Feb 2018 16:19:47 +0000 (12 08:19 -0800)
treeedb83a109d36106dd6db6a9cd3a1cf0f4417a4b3
parent4f2c845cd590d0926d086728d7995e2b35814bc8
Generate SyntaxKindWrapper for smart constructors

Summary:
Generate wrapper around smart constructors that will keep track of the SyntaxKind of the node created.
Parsers often change behavior based on the node type created, so we expose this info to them.

Next step will be using `SC.is_*` functions instead of `Syntax.is_*'` ones.

Differential Revision: D6883662

fbshipit-source-id: 067da3cea4051f1ccc697524e9d50ace65795ba0
hphp/hack/src/generate_full_fidelity.ml
hphp/hack/src/parser/full_fidelity_declaration_parser.ml
hphp/hack/src/parser/full_fidelity_expression_parser.ml
hphp/hack/src/parser/full_fidelity_parser.ml
hphp/hack/src/parser/full_fidelity_precedence_parser.ml
hphp/hack/src/parser/full_fidelity_simple_parser.ml
hphp/hack/src/parser/full_fidelity_statement_parser.ml
hphp/hack/src/parser/full_fidelity_type_parser.ml
hphp/hack/src/parser/parserSig.ml
hphp/hack/src/parser/smart_constructors/smartConstructorsWrappers.ml [new file with mode: 0644]