fix syntax_tree
commit98a33a708d43921e0935b951ddfe27e167fae6f0
authorSteve Cao <shiqicao@fb.com>
Sat, 19 Oct 2019 12:41:28 +0000 (19 05:41 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 19 Oct 2019 12:43:13 +0000 (19 05:43 -0700)
tree1cc071aeb7442a4daec16eb57529a6428aa2eedd
parentc97f45b07157fa68ecb2a9aeda2529a77aaa2d49
fix syntax_tree

Summary: The return type of `make_syntax_tree` isn't correct, it should return state type of a smart constructor but it returns the type of smart constructor. Also fix the function implementation.

Reviewed By: losvald

Differential Revision: D17934163

fbshipit-source-id: 1f28d415be86e30515604bd70f3df55904bd07be
hphp/hack/src/parser/syntax_tree.rs