Example #1
0
        private void Run(IEnumerable <Declaration> members)
        {
            var groupedMembers = members.GroupBy(m => m.ProjectName);

            foreach (var group in groupedMembers)
            {
                using (var project = _vbe.VBProjects[group.Key])
                    using (var typeLib = TypeLibWrapper.FromVBProject(project))
                    {
                        foreach (var member in group)
                        {
                            _typeLibApi.ExecuteCode(typeLib, member.QualifiedModuleName.ComponentName,
                                                    member.QualifiedName.MemberName);
                        }
                    }
            }
        }
Example #2
0
 public ReferencesCollection(TypeLibWrapper parent) => _parent = parent;