mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -1197,6 +1197,13 @@ static bool performAction(CompilerInstance &Instance,
|
||||
llvm::outs(), PrintOptions::printEverything());
|
||||
return Instance.getASTContext().hadError();
|
||||
});
|
||||
case FrontendOptions::ActionType::PrintASTDecl:
|
||||
return withSemanticAnalysis(
|
||||
Instance, observer, [](CompilerInstance &Instance) {
|
||||
getPrimaryOrMainSourceFile(Instance).print(
|
||||
llvm::outs(), PrintOptions::printDeclarations());
|
||||
return Instance.getASTContext().hadError();
|
||||
});
|
||||
case FrontendOptions::ActionType::DumpScopeMaps:
|
||||
return withSemanticAnalysis(
|
||||
Instance, observer, [](CompilerInstance &Instance) {
|
||||
|
||||
Reference in New Issue
Block a user