mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Parse] Fix issue with incremental re-parsing for SwiftSyntax emitting bogus parsing error
rdar://60232712
This commit is contained in:
@@ -606,6 +606,7 @@ int parseFile(
|
||||
// Set up the compiler invocation
|
||||
CompilerInvocation Invocation;
|
||||
Invocation.getLangOptions().BuildSyntaxTree = true;
|
||||
Invocation.getLangOptions().ParseForSyntaxTreeOnly = true;
|
||||
Invocation.getLangOptions().VerifySyntaxTree = options::VerifySyntaxTree;
|
||||
Invocation.getLangOptions().RequestEvaluatorGraphVizPath = options::GraphVisPath;
|
||||
Invocation.getFrontendOptions().InputsAndOutputs.addInputFile(InputFileName);
|
||||
|
||||
Reference in New Issue
Block a user