Mapper for annotations on Annotated AST
commitec07499c07b3b7f7fc3612f715708e4a1b002a2e
authorAndrew Kennedy <akenn@fb.com>
Mon, 20 Feb 2017 08:41:11 +0000 (20 00:41 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 20 Feb 2017 08:51:56 +0000 (20 00:51 -0800)
tree5f49df455f5553c95f10e8f1cb502bd2699563ad
parent19ac2232cac91c04d2a5d178bec211058f7e9ffc
Mapper for annotations on Annotated AST

Summary:
Given two annotated AST types (e.g. the NAST and the TAST), construct mapper functions
that take a function from annotations to annotations and apply this recursively across
expressions, statements, and so on.

Reviewed By: hubyrod

Differential Revision: D4474670

fbshipit-source-id: fdb52de1049d6066bb8f61b6f3ef4416ec3f7e2c
hphp/hack/src/naming/aast_mapper.ml [new file with mode: 0644]