Skip to content

Commit

Permalink
used ParseTreeWalker default instance, per antlr/antlr4#841 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Apr 1, 2016
1 parent 58869ed commit 1c18f42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Rubberduck.Parsing/VBA/RubberduckParserReimpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,13 @@ private void ResolveDeclarations(VBComponent component, IParseTree tree)

try
{
var walker = new ParseTreeWalker();
walker.Walk(new CombinedParseTreeListener(new IParseTreeListener[]{
ParseTreeWalker.Default.Walk(new CombinedParseTreeListener(new IParseTreeListener[]{
obsoleteCallStatementListener,
obsoleteLetStatementListener,
emptyStringLiteralListener,
argListWithOneByRefParamListener,
}), tree);
// FIXME this are actually (almost) isnpection results.. we should handle them as such
// FIXME these are actually (almost) isnpection results.. we should handle them as such
_state.ArgListsWithOneByRefParam = argListWithOneByRefParamListener.Contexts.Select(context => new QualifiedContext(qualifiedModuleName, context));
_state.EmptyStringLiterals = emptyStringLiteralListener.Contexts.Select(context => new QualifiedContext(qualifiedModuleName, context));
_state.ObsoleteLetContexts = obsoleteLetStatementListener.Contexts.Select(context => new QualifiedContext(qualifiedModuleName, context));
Expand Down

0 comments on commit 1c18f42

Please sign in to comment.