Skip to content

Commit

Permalink
Partially revert 489038d
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogel612 committed Nov 25, 2017
1 parent 022c377 commit de596b4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Rubberduck.Parsing/VBA/RubberduckParserState.cs
Expand Up @@ -71,8 +71,17 @@ public sealed class RubberduckParserState : IDisposable, IDeclarationFinderProvi

public RubberduckParserState(IVBE vbe, IDeclarationFinderFactory declarationFinderFactory)
{
_vbe = vbe ?? throw new ArgumentNullException(nameof(vbe));
_declarationFinderFactory = declarationFinderFactory ?? throw new ArgumentNullException(nameof(declarationFinderFactory));
if (vbe == null)
{
throw new ArgumentNullException(nameof(vbe));
}
if (declarationFinderFactory == null)
{
throw new ArgumentNullException(nameof(declarationFinderFactory));
}

_vbe = vbe;
_declarationFinderFactory = declarationFinderFactory;

var values = Enum.GetValues(typeof(ParserState));
foreach (var value in values)
Expand Down

0 comments on commit de596b4

Please sign in to comment.