@@ -854,6 +854,8 @@ class FieldDefinition final : folly::MoveOnly {
854
854
: nullptr ;
855
855
}
856
856
857
+ const AnnotationsMap& annotations () const noexcept { return annotations_; }
858
+
857
859
const SerializableRecord* getAnnotationOrNull (UriView uri) const {
858
860
return folly::get_ptr (annotations_, uri);
859
861
}
@@ -984,6 +986,8 @@ class StructuredNode : public DefinitionNode {
984
986
return FastFieldHandle::invalid ();
985
987
}
986
988
989
+ const AnnotationsMap& annotations () const noexcept { return annotations_; }
990
+
987
991
const SerializableRecord* getAnnotationOrNull (UriView uri) const {
988
992
return folly::get_ptr (annotations_, uri);
989
993
}
@@ -1033,13 +1037,16 @@ class EnumNode final : folly::MoveOnly, public DefinitionNode {
1033
1037
friend bool operator !=(const Value& lhs, const Value& rhs) noexcept {
1034
1038
return !(lhs == rhs);
1035
1039
}
1040
+ const AnnotationsMap& annotations () const noexcept { return annotations_; }
1036
1041
const SerializableRecord* getAnnotationOrNull (UriView uri) const {
1037
1042
return folly::get_ptr (annotations_, uri);
1038
1043
}
1039
1044
};
1040
1045
1041
1046
folly::span<const Value> values () const noexcept { return values_; }
1042
1047
1048
+ const AnnotationsMap& annotations () const noexcept { return annotations_; }
1049
+
1043
1050
const SerializableRecord* getAnnotationOrNull (UriView uri) const {
1044
1051
return folly::get_ptr (annotations_, uri);
1045
1052
}
@@ -1059,6 +1066,8 @@ class OpaqueAliasNode final : folly::MoveOnly, public DefinitionNode {
1059
1066
public:
1060
1067
const TypeRef& targetType () const noexcept { return targetType_; }
1061
1068
1069
+ const AnnotationsMap& annotations () const noexcept { return annotations_; }
1070
+
1062
1071
const SerializableRecord* getAnnotationOrNull (UriView uri) const {
1063
1072
return folly::get_ptr (annotations_, uri);
1064
1073
}
0 commit comments