private void AddRole(TypeReference role)
 {
     var memberReader = new MemberReaderVisitor();
       role.Resolve().Accept(memberReader);
       var roleMembers = memberReader.Members.Select(member => MakeRoleMember(role, member));
       AddRoleMembers(role, roleMembers);
 }
Example #2
0
 private void ResolveMembers()
 {
     var visitor = new MemberReaderVisitor();
       SearchType.Resolve().Accept(visitor);
       _members = visitor.Members;
 }
 private static IEnumerable<ClassMember> RetrieveDirectMembers(TypeReference type, bool inherited)
 {
     var visitor = new MemberReaderVisitor();
       type.Resolve().Accept(visitor);
       return visitor.Members.Select(definition => new ClassMember(type, definition, inherited));
 }