Skip to content

Commit 328888a

Browse files
committed
AST: Make ArchetypeBuilder::substDependentType() private
1 parent 620b805 commit 328888a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/swift/AST/ArchetypeBuilder.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ class ArchetypeBuilder {
219219
ProtocolDecl *RootProtocol,
220220
Identifier ParamName);
221221

222+
/// \brief Resolve the given dependent type using our context archetypes.
223+
///
224+
/// Given an arbitrary type, this will substitute dependent type parameters
225+
/// structurally with their corresponding archetypes and resolve dependent
226+
/// member types to the appropriate associated types.
227+
Type substDependentType(Type type);
228+
222229
public:
223230
/// \brief Add a new generic parameter for which there may be requirements.
224231
void addGenericParameter(GenericTypeParamDecl *GenericParam);
@@ -305,13 +312,6 @@ class ArchetypeBuilder {
305312
/// For any type that cannot refer to an archetype, this routine returns null.
306313
PotentialArchetype *resolveArchetype(Type type);
307314

308-
/// \brief Resolve the given dependent type using our context archetypes.
309-
///
310-
/// Given an arbitrary type, this will substitute dependent type parameters
311-
/// structurally with their corresponding archetypes and resolve dependent
312-
/// member types to the appropriate associated types.
313-
Type substDependentType(Type type);
314-
315315
/// Map an interface type to a contextual type.
316316
static Type mapTypeIntoContext(const DeclContext *dc, Type type);
317317

0 commit comments

Comments
 (0)