Add file attributes to symbol map
commit7bd87bdc5b0a2e002337cb74e4552cf5e66d88a0
authorDavid Vogel (Privacy) <davidjackson@fb.com>
Mon, 14 Jun 2021 18:18:37 +0000 (14 11:18 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 14 Jun 2021 18:20:06 +0000 (14 11:20 -0700)
tree7866d615cca76c88e63f6324fdacb0c2701298c4
parent4e69c17a4878ea043217631d8ce14d947c224142
Add file attributes to symbol map

Summary:
Hack supports 'File Attributes', which are attributes that annotate the file. Both Universes and EntSchema would benefit from these being indexed by Facts so we can find generated files easily.

This diff is adding file attributes to the facts symbol map and storing them at the file level.

Reviewed By: jthemphill

Differential Revision: D28975883

fbshipit-source-id: 83f40cfb221a9a03a7906d229a58d327a7423bba
hphp/runtime/ext/facts/fact-extractor.cpp
hphp/runtime/ext/facts/file-facts.h
hphp/runtime/ext/facts/symbol-map-defs.h
hphp/runtime/ext/facts/symbol-map.h
hphp/runtime/ext/facts/test/symbol-map-test.cpp