@@ -662,7 +662,7 @@ impl SchemaDefinition {
662
662
///
663
663
/// The order of the returned set is unspecified but deterministic
664
664
/// 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 > {
666
666
self . directives
667
667
. iter ( )
668
668
. map ( |dir| & dir. origin )
@@ -858,7 +858,7 @@ impl ExtendedType {
858
858
///
859
859
/// The order of the returned set is unspecified but deterministic
860
860
/// 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 > {
862
862
match self {
863
863
Self :: Scalar ( ty) => Box :: new ( ty. iter_origins ( ) ) as Box < dyn Iterator < Item = _ > > ,
864
864
Self :: Object ( ty) => Box :: new ( ty. iter_origins ( ) ) ,
@@ -887,7 +887,7 @@ impl ScalarType {
887
887
///
888
888
/// The order of the returned set is unspecified but deterministic
889
889
/// 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 > {
891
891
self . directives . iter ( ) . map ( |dir| & dir. origin )
892
892
}
893
893
@@ -909,7 +909,7 @@ impl ObjectType {
909
909
///
910
910
/// The order of the returned set is unspecified but deterministic
911
911
/// 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 > {
913
913
self . directives
914
914
. iter ( )
915
915
. map ( |dir| & dir. origin )
@@ -939,7 +939,7 @@ impl InterfaceType {
939
939
///
940
940
/// The order of the returned set is unspecified but deterministic
941
941
/// 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 > {
943
943
self . directives
944
944
. iter ( )
945
945
. map ( |dir| & dir. origin )
@@ -969,7 +969,7 @@ impl UnionType {
969
969
///
970
970
/// The order of the returned set is unspecified but deterministic
971
971
/// 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 > {
973
973
self . directives
974
974
. iter ( )
975
975
. map ( |dir| & dir. origin )
@@ -994,7 +994,7 @@ impl EnumType {
994
994
///
995
995
/// The order of the returned set is unspecified but deterministic
996
996
/// 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 > {
998
998
self . directives
999
999
. iter ( )
1000
1000
. map ( |dir| & dir. origin )
@@ -1019,7 +1019,7 @@ impl InputObjectType {
1019
1019
///
1020
1020
/// The order of the returned set is unspecified but deterministic
1021
1021
/// 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 > {
1023
1023
self . directives
1024
1024
. iter ( )
1025
1025
. map ( |dir| & dir. origin )
0 commit comments