Ejemplo n.º 1
0
			V_1 = Type.GetTypeFromHandle(// 
			// Current member / type: System.Collections.Generic.HashSet`1<System.String> Telerik.JustDecompiler.Languages.IL.ILHelpers::BuildKeywordList(System.String[])
			// Exception in: System.Collections.Generic.HashSet<System.String> BuildKeywordList(System.String[])
			// Specified method is not supported.
			// 
			// mailto: [email protected]


		internal static MemberMapping CreateCodeMapping(MethodDefinition member, CodeMappings codeMappings)
		{
			V_0 = new ILHelpers.u003cu003ec__DisplayClass5_0();
			V_0.member = member;
			if (V_0.member == null || !V_0.member.get_HasBody())
			{
				return null;
			}
			if (codeMappings == null)
			{
				return null;
			}
			V_1 = null;
			if (String.op_Equality(codeMappings.get_FullName(), V_0.member.get_DeclaringType().get_FullName()))
			{
				V_2 = codeMappings.get_Mapping();
				if (V_2.Find(new Predicate<MemberMapping>(V_0.u003cCreateCodeMappingu003eb__0)) == null)
				{
					stackVariable26 = new MemberMapping();
					V_3 = V_0.member.get_MetadataToken();
					stackVariable26.set_MetadataToken(V_3.ToInt32());
					stackVariable26.set_MemberReference(V_0.member.get_DeclaringType().Resolve());
					stackVariable26.set_MemberCodeMappings(new List<SourceCodeMapping>());
					stackVariable26.set_CodeSize(V_0.member.get_Body().get_CodeSize());
					V_1 = stackVariable26;
					V_2.Add(V_1);
				}
			}
			return V_1;
		}
 private Dictionary <AssemblyNameReference, List <TypeReference> > GetModuleDependsOnAnalysis(ModuleDefinition module)
 {
     stackVariable1 = module.get_Types();
     V_0            = new HashSet <TypeReference>();
     V_3            = stackVariable1.GetEnumerator();
     try
     {
         while (V_3.MoveNext())
         {
             V_4 = V_3.get_Current();
             if (V_0.Contains(V_4))
             {
                 continue;
             }
             dummyVar0 = V_0.Add(V_4);
         }
     }
     finally
     {
         V_3.Dispose();
     }
     V_5 = module.GetTypeReferences().GetEnumerator();
     try
     {
         while (V_5.MoveNext())
         {
             V_6 = V_5.get_Current();
             if (V_0.Contains(V_6))
             {
                 continue;
             }
             dummyVar1 = V_0.Add(V_6);
         }
     }
     finally
     {
         if (V_5 != null)
         {
             V_5.Dispose();
         }
     }
     V_2 = Utilities.GetAssembliesDependingOnToUsedTypesMap(module, Utilities.GetExpandedTypeDependanceList(V_0));
     V_7 = module.get_AssemblyReferences().GetEnumerator();
     try
     {
         while (V_7.MoveNext())
         {
             V_8 = V_7.get_Current();
             if (V_2.ContainsKey(V_8))
             {
                 continue;
             }
             V_2.Add(V_8, new List <TypeReference>());
         }
     }
     finally
     {
         V_7.Dispose();
     }
     return(V_2);
 }