Test/fix similar files (file hashes during init)
commit3833717f754bca2ae5d6fac28900f71fd09a7e61
authorKasper Kopec <kasper@fb.com>
Tue, 18 Sep 2018 00:33:27 +0000 (17 17:33 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 18 Sep 2018 00:39:34 +0000 (17 17:39 -0700)
tree62910c9b6f5edd3a75de75a71eab7c523f00212e
parent3d78896d70b29420100997ca35116066f9f5cb89
Test/fix similar files (file hashes during init)

Summary:
Similar files (D5972889) are an optimization that allows us not to fan-out from files that change in insignificant way, even if we don't have the previous versions of declarations (they use hash of previous version of AST with function bodies removed).

It was accidentally made less effective in D5360294, where doc blocks became part of ast.ml structure that we hash.

Reviewed By: jamesjwu

Differential Revision: D9793220

fbshipit-source-id: e84ed092bce6719a1623fb09f60267ff54c56e6d
hphp/hack/src/parser/ast_utils.ml
hphp/hack/test/integration_ml/saved_state/test_similar_files.ml [new file with mode: 0644]