Rewrite $this::static method calls
commit1009265b69d79e0ace530bf24fb7580a923a85fd
authorThomas Jiang <thomasjiang@fb.com>
Fri, 6 Jul 2018 00:54:20 +0000 (5 17:54 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 6 Jul 2018 00:58:25 +0000 (5 17:58 -0700)
tree0eeec4ddd5d8798a2f9c97f49e42d1ef7f0081be
parente3dcfa459d8a2ee5c3b389516e87cf9e487a1540
Rewrite $this::static method calls

Summary:
`$this::staticMethod()` needs to be rewritten in `<<__PPL>>` attributed classes to be coroutines. We will rewrite them as

```
suspend $this::staticMethod($__recv, ...)
```

Reviewed By: michaeltingley

Differential Revision: D8627331

fbshipit-source-id: 8c94220b320de666445437b030265a0de10f88b9
hphp/hack/src/parser/ppl/ppl_class_rewriter.ml