diff --git a/upb/reflection/BUILD b/upb/reflection/BUILD index d29a964c48..f12e705b65 100644 --- a/upb/reflection/BUILD +++ b/upb/reflection/BUILD @@ -65,6 +65,8 @@ bootstrap_cc_library( "//upb:mem", "//upb:message", "//upb:message_value", + "//upb:mini_descriptor", + "//upb:mini_table", "//upb:port", ], ) diff --git a/upb/reflection/def.hpp b/upb/reflection/def.hpp index 855ef3dc9a..983ffbffe8 100644 --- a/upb/reflection/def.hpp +++ b/upb/reflection/def.hpp @@ -8,13 +8,20 @@ #ifndef UPB_REFLECTION_DEF_HPP_ #define UPB_REFLECTION_DEF_HPP_ +#include + #include #include #include -#include +#include "upb/base/descriptor_constants.h" #include "upb/base/status.hpp" +#include "upb/base/string_view.h" #include "upb/mem/arena.hpp" +#include "upb/mini_descriptor/decode.h" +#include "upb/mini_table/enum.h" +#include "upb/mini_table/field.h" +#include "upb/mini_table/message.h" #include "upb/reflection/def.h" #include "upb/reflection/internal/def_pool.h" #include "upb/reflection/internal/enum_def.h" @@ -555,9 +562,6 @@ class DefPool { std::unique_ptr ptr_; }; -// TODO: This typedef is deprecated. Delete it. -using SymbolTable = DefPool; - inline FileDefPtr FieldDefPtr::file() const { return FileDefPtr(upb_FieldDef_File(ptr_)); }