AST printing: make PrintDefaultParameterPlaceholder the default (since we are

not going to implement expression printing any time soon), and fix a bug in its
implementation: when used with deserialized modules, "= default" was not
printed.


Swift SVN r15798
This commit is contained in:
Dmitri Hrybenko
2014-04-02 13:56:54 +00:00
parent 0fdaf47fed
commit 78e354b2b9
3 changed files with 5 additions and 2 deletions

View File

@@ -34,6 +34,8 @@ void swift::ide::printSubmoduleInterface(Module *M,
AdjustedOptions.ExplodePatternBindingDecls = true;
AdjustedOptions.VarInitializers = false;
AdjustedOptions.PrintDefaultParameterPlaceholder = true;
SmallVector<Decl *, 1> Decls;
M->getDisplayDecls(Decls);