예제 #1
0
 private DecompiledType GetDecompiledType(IMemberDefinition member, ILanguage language)
 {
     if (member as TypeDefinition != null)
     {
         stackVariable3 = member as TypeDefinition;
     }
     else
     {
         stackVariable3 = member.get_DeclaringType();
     }
     V_0 = new DecompiledType(stackVariable3);
     if (member as MethodDefinition == null)
     {
         if (member as PropertyDefinition == null)
         {
             throw new NotSupportedException("FrameworkFolderWriterContext service supports only methods and properties.");
         }
         V_3 = member as PropertyDefinition;
         if (V_3.get_GetMethod() != null)
         {
             V_4 = Utilities.TryGetDecompiledMember(V_3.get_GetMethod(), V_0.get_TypeContext(), language);
             V_0.get_DecompiledMembers().Add(V_3.get_GetMethod().get_FullName(), V_4);
         }
         if (V_3.get_SetMethod() != null)
         {
             V_5 = Utilities.TryGetDecompiledMember(V_3.get_SetMethod(), V_0.get_TypeContext(), language);
             V_0.get_DecompiledMembers().Add(V_3.get_SetMethod().get_FullName(), V_5);
         }
     }
     else
     {
         V_1 = member as MethodDefinition;
         V_2 = Utilities.TryGetDecompiledMember(V_1, V_0.get_TypeContext(), language);
         V_0.get_DecompiledMembers().Add(V_1.get_FullName(), V_2);
     }
     this.AddGeneratedFilterMethodsToDecompiledType(V_0, V_0.get_TypeContext(), language);
     return(V_0);
 }