Skip to content

Commit 663783f

Browse files
committed
Move FieldType into anonymous namespace
1 parent 5398cef commit 663783f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stdlib/public/runtime/ReflectionMirror.mm

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ int asprintf(char **strp, const char *fmt, ...) {
8080

8181
using namespace swift;
8282

83+
#if SWIFT_OBJC_INTEROP
84+
// Declare the debugQuickLookObject selector.
85+
@interface DeclareSelectors
86+
- (id)debugQuickLookObject;
87+
@end
88+
#endif
89+
90+
namespace {
91+
8392
class FieldType {
8493
const Metadata *type;
8594
bool indirect;
@@ -103,15 +112,6 @@ void setReferenceOwnership(TypeReferenceOwnership newOwnership) {
103112
}
104113
};
105114

106-
#if SWIFT_OBJC_INTEROP
107-
// Declare the debugQuickLookObject selector.
108-
@interface DeclareSelectors
109-
- (id)debugQuickLookObject;
110-
@end
111-
#endif
112-
113-
namespace {
114-
115115
/// The layout of Any.
116116
using Any = OpaqueExistentialContainer;
117117

0 commit comments

Comments
 (0)