Skip to content

Commit

Permalink
UntypedFunctionUsageInspection tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hosch250 committed Jul 8, 2016
1 parent 9810c10 commit bc97eac
Show file tree
Hide file tree
Showing 5 changed files with 664 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RetailCoder.VBE/API/ParserState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Initialize(VBE vbe)
Func<IVBAPreprocessor> preprocessorFactory = () => new VBAPreprocessor(double.Parse(vbe.Version, CultureInfo.InvariantCulture));
_attributeParser = new AttributeParser(new ModuleExporter(), preprocessorFactory);
_parser = new RubberduckParser(_state, _attributeParser, preprocessorFactory,
new List<ICustomDeclarationLoader> { new DebugDeclarations(_state), new FormEventDeclarations(_state) });
new List<ICustomDeclarationLoader> { new DebugDeclarations(_state), new FormEventDeclarations(_state), new AliasDeclarations(_state) });
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Rubberduck.Parsing/Symbols/AliasDeclarations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private IReadOnlyList<Declaration> AddAliasDeclarations()
item => item.IdentifierName == "Interaction" && item.Scope == "VBE7.DLL;VBA.Interaction");

var stringsModule = _state.AllDeclarations.SingleOrDefault(
item => item.IdentifierName == "Interaction" && item.Scope == "VBE7.DLL;VBA.Interaction");
item => item.IdentifierName == "Strings" && item.Scope == "VBE7.DLL;VBA.Strings");

// all these modules are all part of the same project--only need to check one
if (conversionModule == null)
Expand Down

0 comments on commit bc97eac

Please sign in to comment.