libSyntax: rename KeepTokensInSourceFile to KeepSyntaxInfoInSourceFile.

This commit is contained in:
Xi Ge
2017-11-03 16:56:04 -07:00
parent 4ee32a125e
commit 6af5d3c0bf
12 changed files with 29 additions and 30 deletions

View File

@@ -420,7 +420,7 @@ bool SwiftASTManager::initCompilerInvocation(CompilerInvocation &Invocation,
Invocation.setSerializedDiagnosticsPath(StringRef());
Invocation.getLangOptions().AttachCommentsToDecls = true;
Invocation.getLangOptions().DiagnosticsEditorMode = true;
Invocation.getLangOptions().KeepTokensInSourceFile = true;
Invocation.getLangOptions().KeepSyntaxInfoInSourceFile = true;
auto &FrontendOpts = Invocation.getFrontendOptions();
if (FrontendOpts.PlaygroundTransform) {
// The playground instrumenter changes the AST in ways that disrupt the
@@ -812,7 +812,7 @@ ASTUnitRef ASTProducer::createASTUnit(SwiftASTManager::Implementation &MgrImpl,
CompilerInvocation Invocation;
Opts.applyTo(Invocation);
Invocation.getLangOptions().KeepTokensInSourceFile = true;
Invocation.getLangOptions().KeepSyntaxInfoInSourceFile = true;
for (auto &Content : Contents)
Invocation.addInputBuffer(Content.Buffer.get());