File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3952,6 +3952,18 @@ void Metadata::dump() const {
3952
3952
if (auto *contextDescriptor = getTypeContextDescriptor ()) {
3953
3953
printf (" Name: %s.\n " , contextDescriptor->Name .get ());
3954
3954
printf (" Type Context Description: %p.\n " , contextDescriptor);
3955
+
3956
+ if (contextDescriptor->isGeneric ()) {
3957
+ auto genericCount = contextDescriptor->getFullGenericContextHeader ().Base .getNumArguments ();
3958
+ auto *args = getGenericArgs ();
3959
+ printf (" Generic Args: %u: [" , genericCount);
3960
+ for (uint32_t i = 0 ; i < genericCount; i++) {
3961
+ if (i > 0 )
3962
+ printf (" , " );
3963
+ printf (" %p" , args[i]);
3964
+ }
3965
+ printf (" ]\n " );
3966
+ }
3955
3967
}
3956
3968
3957
3969
if (auto *tuple = dyn_cast<TupleTypeMetadata>(this )) {
@@ -3976,8 +3988,6 @@ void Metadata::dump() const {
3976
3988
printf (" \n " );
3977
3989
}
3978
3990
3979
- printf (" Generic Args: %p.\n " , getGenericArgs ());
3980
-
3981
3991
#if SWIFT_OBJC_INTEROP
3982
3992
if (auto *classObject = getClassObject ()) {
3983
3993
printf (" ObjC Name: %s.\n " , class_getName (
You can’t perform that action at this time.
0 commit comments