Move class const check to nast_check
Summary:
Trying to break up naming into separate components - This stack attempts to clean up and move error checks from naming.ml to into nast_check by converting them to nast_visitors. Some of these passes do not require names or calls to the naming table so they could be parser errors - but keeping them consistent until we decide what we want to do with them later.
Move checks of duplicates for class consts, etc to nast_check. Means we also don't have to pass around a hash table all over the place.
Reviewed By: kmeht
Differential Revision:
D17531456
fbshipit-source-id:
1825707d3598e9fbf5acb59d9bb056aa8ac00a3d