Skip to content
Permalink
Browse files

Partially revert 489038d

  • Loading branch information...
Vogel612 committed Nov 25, 2017
1 parent 022c377 commit de596b4f48e61a70ad872e4273551185be968009
Showing with 11 additions and 2 deletions.
  1. +11 −2 Rubberduck.Parsing/VBA/RubberduckParserState.cs
@@ -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)

0 comments on commit de596b4

Please sign in to comment.
You can’t perform that action at this time.