Skip to content

Commit

Permalink
in-progress - accounting for reference ordering per-project.
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Apr 20, 2016
1 parent 7e8ec60 commit ad79a9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Rubberduck.Parsing/VBA/RubberduckParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ private void LoadComReferences(IEnumerable<VBProject> projects)
.Select(reference => new {Guid = new Guid(reference.Guid), Reference = reference})
.Where(item => !_loadedReferences.Contains(item.Guid));

for (var i = 0; i < references.Count; i++)
{

}

foreach (var item in newReferences)
{
LoadComReference(item.Reference);
Expand Down Expand Up @@ -206,6 +211,8 @@ public void UnloadComReference(Reference reference)
if (target != null)
{
_state.RemoveBuiltInDeclarations(target.Reference);
var guid = new Guid(reference.Guid);
_loadedReferences.Remove(guid);
}
}

Expand Down

0 comments on commit ad79a9d

Please sign in to comment.