We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IDEInspectionSecondPassRequest
parserState
1 parent 0d10b57 commit 2add407Copy full SHA for 2add407
lib/Parse/Parser.cpp
@@ -116,7 +116,7 @@ bool IDEInspectionSecondPassRequest::evaluate(
116
IDEInspectionCallbacksFactory *Factory) const {
117
// If we didn't find the code completion token, bail.
118
auto *parserState = SF->getDelayedParserState();
119
- if (!parserState->hasIDEInspectionDelayedDeclState())
+ if (!parserState || !parserState->hasIDEInspectionDelayedDeclState())
120
return true;
121
122
// Decrement the closure discriminator index by one so a top-level closure
0 commit comments