mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Move #if evaluation flag out of PersistentParserState
Move this flag onto the parser instead. Now the only client of PersistentParserState is code completion.
This commit is contained in:
@@ -290,7 +290,7 @@ swiftparse_client_node_t SynParser::parse(const char *source) {
|
||||
"syntax_parse_module", std::move(parseActions),
|
||||
/*SyntaxCache=*/nullptr);
|
||||
// Evaluating pound conditions may lead to unknown syntax.
|
||||
PU.getParser().State->PerformConditionEvaluation = false;
|
||||
PU.getParser().EvaluateConditionals = false;
|
||||
std::unique_ptr<SynParserDiagConsumer> pConsumer;
|
||||
if (DiagHandler) {
|
||||
pConsumer = std::make_unique<SynParserDiagConsumer>(*this, bufID);
|
||||
|
||||
Reference in New Issue
Block a user