Parsing function calls with annotated generics
commit58c7ed17ead83ce6a747c7185ec49de0116b0299
authorPhilip Hölzenspies <drphil@fb.com>
Fri, 15 Sep 2017 11:08:44 +0000 (15 04:08 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 15 Sep 2017 11:15:46 +0000 (15 04:15 -0700)
treec42e55d8832a8f2a15dab9d87da8bb53eea1bc9d
parente1dcefbe2083c699cd81207291a2895c8d75abe2
Parsing function calls with annotated generics

Summary:
Previous attempts were incomplete (D5028089) or broke the parser (D5513504). This diff tries to clean up the implementation in the full fidelity parser of generics annotations on function calls, i.e.
```
$l = length<string>('hello');
```

Reviewed By: oulgen

Differential Revision: D5786522

fbshipit-source-id: 5c9a7ae1bac066aefa9147d654198b2904bc2d2c
hphp/hack/src/parser/full_fidelity_expression_parser.ml
hphp/hack/src/parser/full_fidelity_type_parser.ml
hphp/hack/test/full_fidelity/cases/test_funcall_with_type_arguments.exp
hphp/hack/test/full_fidelity/cases/test_funcall_with_type_arguments.php
hphp/test/hhcodegen_failing_tests_quick