ModulePrinting: Refactoring SynthesizedExtensionAnalyzer to better expose the merge groups of extensions. NFC

This commit is contained in:
Xi Ge
2016-03-17 12:02:21 -07:00
parent 879e110470
commit 3dbd14be00
3 changed files with 119 additions and 100 deletions

View File

@@ -464,11 +464,9 @@ void swift::ide::printSubmoduleInterface(
}
continue;
}
// Print synthesized extensions.
SynthesizedExtensionAnalyzer Analyzer(NTD, AdjustedOptions);
Analyzer.forEachExtensionMergeGroup(
SynthesizedExtensionAnalyzer::MergeGroupKind::All,
[&](ArrayRef<ExtensionAndIsSynthesized> Decls){
for (auto ET : Decls) {
AdjustedOptions.shouldOpenExtension =