ASTPrinter: Remove ASTPrinter's dependency on Sema. (#10985)

This commit is contained in:
Xi Ge
2017-07-14 20:02:25 -07:00
committed by GitHub
parent b058ed8312
commit 0bba7d900b
9 changed files with 139 additions and 102 deletions

View File

@@ -664,7 +664,7 @@ static bool passCursorInfoForDecl(const ValueDecl *VD,
if (BaseType) {
if (auto Target = BaseType->getAnyNominal()) {
SynthesizedExtensionAnalyzer Analyzer(Target,
PrintOptions::printInterface());
PrintOptions::printModuleInterface());
InSynthesizedExtension = Analyzer.isInSynthesizedExtension(VD);
}
}