mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Parse] Fix issue with incremental re-parsing for SwiftSyntax emitting bogus parsing error
rdar://60232712
This commit is contained in:
@@ -277,6 +277,7 @@ swiftparse_client_node_t SynParser::parse(const char *source) {
|
||||
TypeCheckerOptions tyckOpts;
|
||||
LangOptions langOpts;
|
||||
langOpts.BuildSyntaxTree = true;
|
||||
langOpts.ParseForSyntaxTreeOnly = true;
|
||||
langOpts.CollectParsedToken = false;
|
||||
// Disable name lookups during parsing.
|
||||
// Not ready yet:
|
||||
|
||||
Reference in New Issue
Block a user