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:
Hamish Knight
2020-02-04 14:51:19 -08:00
parent d494cc8dcb
commit 0d5a5e12d5
10 changed files with 29 additions and 25 deletions

View File

@@ -715,7 +715,7 @@ public:
Parser->getDiagnosticEngine().addConsumer(DiagConsumer);
// Collecting syntactic information shouldn't evaluate # conditions.
Parser->getParser().State->PerformConditionEvaluation = false;
Parser->getParser().EvaluateConditionals = false;
// If there is a syntax parsing cache, incremental syntax parsing is
// performed and thus the generated AST may not be up-to-date.