@@ -567,22 +567,6 @@ class alignas(1 << DeclContextAlignInBits) DeclContext {
567
567
LLVM_READONLY
568
568
ASTContext &getASTContext () const ;
569
569
570
- // / Retrieve the set of protocols whose conformances will be
571
- // / associated with this declaration context.
572
- // /
573
- // / This function differs from \c getLocalConformances() in that it
574
- // / returns protocol declarations, not protocol conformances, and
575
- // / therefore does not require the protocol conformances to be
576
- // / formed.
577
- // /
578
- // / \param lookupKind The kind of lookup to perform.
579
- // /
580
- // / FIXME: This likely makes more sense on IterableDeclContext or
581
- // / something similar.
582
- SmallVector<ProtocolDecl *, 2 >
583
- getLocalProtocols (ConformanceLookupKind lookupKind
584
- = ConformanceLookupKind::All) const ;
585
-
586
570
// / Retrieve the set of protocol conformances associated with this
587
571
// / declaration context.
588
572
// /
@@ -594,14 +578,6 @@ class alignas(1 << DeclContextAlignInBits) DeclContext {
594
578
getLocalConformances (ConformanceLookupKind lookupKind
595
579
= ConformanceLookupKind::All) const ;
596
580
597
- // / Retrieve diagnostics discovered while expanding conformances for this
598
- // / declaration context. This operation then removes those diagnostics from
599
- // / consideration, so subsequent calls to this function with the same
600
- // / declaration context that have not had any new extensions bound
601
- // / will see an empty array.
602
- SmallVector<ConformanceDiagnostic, 4 >
603
- takeConformanceDiagnostics () const ;
604
-
605
581
// / Retrieves a list of separately imported overlays which are shadowing
606
582
// / \p declaring. If any \p overlays are returned, qualified lookups into
607
583
// / \p declaring should be performed into \p overlays instead; since they
@@ -816,6 +792,26 @@ class IterableDeclContext {
816
792
// / valid).
817
793
bool wasDeserialized () const ;
818
794
795
+ // / Retrieve the set of protocols whose conformances will be
796
+ // / associated with this declaration context.
797
+ // /
798
+ // / This function differs from \c getLocalConformances() in that it
799
+ // / returns protocol declarations, not protocol conformances, and
800
+ // / therefore does not require the protocol conformances to be
801
+ // / formed.
802
+ // /
803
+ // / \param lookupKind The kind of lookup to perform.
804
+ SmallVector<ProtocolDecl *, 2 >
805
+ getLocalProtocols (ConformanceLookupKind lookupKind
806
+ = ConformanceLookupKind::All) const ;
807
+
808
+ // / Retrieve diagnostics discovered while expanding conformances for this
809
+ // / declaration context. This operation then removes those diagnostics from
810
+ // / consideration, so subsequent calls to this function with the same
811
+ // / declaration context that have not had any new extensions bound
812
+ // / will see an empty array.
813
+ SmallVector<ConformanceDiagnostic, 4 > takeConformanceDiagnostics () const ;
814
+
819
815
// / Return 'this' as a \c Decl.
820
816
const Decl *getDecl () const ;
821
817
0 commit comments