Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Show position information on the ast on demand
Summary: Show position information on the AST Enabled: ``` (AProgram ((Stmt (<1:1,1:5> (Markup (<1:1,1:5> "") ()))) (Constant ((cst_mode: Mdecl) (cst_kind: Define) (cst_name: (<4:3,4:5> "\\A")) (cst_type: ()) (cst_value: (<5:3,5:5> (Int (<5:3,5:5> 555)))) (cst_namespace: ((ns_name: "") (ns_ns_uses: (SMap ())) (ns_class_uses: (SMap ())) (ns_fun_uses: (SMap ())) (ns_const_uses: (SMap ()))))))))% ``` Disabled ``` ~/fbcode ❯❯❯ hh_single_parse --parser ffp ~/test.php (AProgram ((Stmt (p (Markup (p "") ()))) (Constant ((cst_mode: Mdecl) (cst_kind: Define) (cst_name: (p "\\A")) (cst_type: ()) (cst_value: (p (Int (p 555)))) (cst_namespace: ((ns_name: "") (ns_ns_uses: (SMap ())) (ns_class_uses: (SMap ())) ``` Reviewed By: vladima Differential Revision: D6777589 fbshipit-source-id: c856c338e4dad1eb19fe3a3c60c328668c6d2f2d
- Loading branch information