@@ -662,7 +662,7 @@ impl SchemaDefinition {
662662 ///
663663 /// The order of the returned set is unspecified but deterministic
664664 /// for a given apollo-compiler version.
665- fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
665+ pub fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
666666 self . directives
667667 . iter ( )
668668 . map ( |dir| & dir. origin )
@@ -858,7 +858,7 @@ impl ExtendedType {
858858 ///
859859 /// The order of the returned set is unspecified but deterministic
860860 /// for a given apollo-compiler version.
861- fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
861+ pub fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
862862 match self {
863863 Self :: Scalar ( ty) => Box :: new ( ty. iter_origins ( ) ) as Box < dyn Iterator < Item = _ > > ,
864864 Self :: Object ( ty) => Box :: new ( ty. iter_origins ( ) ) ,
@@ -887,7 +887,7 @@ impl ScalarType {
887887 ///
888888 /// The order of the returned set is unspecified but deterministic
889889 /// for a given apollo-compiler version.
890- fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
890+ pub fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
891891 self . directives . iter ( ) . map ( |dir| & dir. origin )
892892 }
893893
@@ -909,7 +909,7 @@ impl ObjectType {
909909 ///
910910 /// The order of the returned set is unspecified but deterministic
911911 /// for a given apollo-compiler version.
912- fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
912+ pub fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
913913 self . directives
914914 . iter ( )
915915 . map ( |dir| & dir. origin )
@@ -939,7 +939,7 @@ impl InterfaceType {
939939 ///
940940 /// The order of the returned set is unspecified but deterministic
941941 /// for a given apollo-compiler version.
942- fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
942+ pub fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
943943 self . directives
944944 . iter ( )
945945 . map ( |dir| & dir. origin )
@@ -969,7 +969,7 @@ impl UnionType {
969969 ///
970970 /// The order of the returned set is unspecified but deterministic
971971 /// for a given apollo-compiler version.
972- fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
972+ pub fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
973973 self . directives
974974 . iter ( )
975975 . map ( |dir| & dir. origin )
@@ -994,7 +994,7 @@ impl EnumType {
994994 ///
995995 /// The order of the returned set is unspecified but deterministic
996996 /// for a given apollo-compiler version.
997- fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
997+ pub fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
998998 self . directives
999999 . iter ( )
10001000 . map ( |dir| & dir. origin )
@@ -1019,7 +1019,7 @@ impl InputObjectType {
10191019 ///
10201020 /// The order of the returned set is unspecified but deterministic
10211021 /// for a given apollo-compiler version.
1022- fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
1022+ pub fn iter_origins ( & self ) -> impl Iterator < Item = & ComponentOrigin > {
10231023 self . directives
10241024 . iter ( )
10251025 . map ( |dir| & dir. origin )
0 commit comments