Skip to content

Commit 4071997

Browse files
committed
ref. pull/3046#discussion_r119972992
1 parent 10f6d5b commit 4071997

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Rubberduck.Parsing/VBA/RubberduckParserState.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,16 @@ public IReadOnlyList<Tuple<IVBComponent, SyntaxErrorException>> ModuleExceptions
321321

322322
public event EventHandler<ParserStateEventArgs> StateChanged;
323323

324-
private int _stateChangedInvocations = 0;
324+
private int _stateChangedInvocations;
325325
private void OnStateChanged(object requestor, ParserState state = ParserState.Pending)
326326
{
327327
_stateChangedInvocations++;
328328
HandleStateChanged(state);
329329

330330
Logger.Info($"{nameof(RubberduckParserState)} ({_stateChangedInvocations}) is invoking {nameof(StateChanged)} ({Status})");
331-
StateChanged?.Invoke(requestor, new ParserStateEventArgs(state));
331+
StateChanged?.Invoke(requestor, new ParserStateEventArgs(state));
332332
}
333+
333334
public event EventHandler<ParseProgressEventArgs> ModuleStateChanged;
334335

335336
//Never spawn new threads changing module states in the handler! This will cause deadlocks.

0 commit comments

Comments
 (0)