internal void method_4() { if (this.bool_0) { Logger.LogWarning("Type.Populate1", "populate got called more than once"); } else { this.bool_0 = true; if (this.IsInCoreAssembly) { this.bfType_0 = this.bfCache_0.method_7(this.typeDefinition_0.BaseType); if (this.bfType_0 != null && this.bfType_0.FullName != "System.Object") { this.bfType_0.DerivedTypes.method_1(this); } foreach (TypeReference typeReference_ in this.typeDefinition_0.Interfaces) { BfType bfType = this.bfCache_0.method_7(typeReference_); this.typeCollection_0.method_1(bfType); bfType.DerivedTypes.method_1(this); } foreach (FieldDefinition fieldDef in this.typeDefinition_0.Fields) { BfField item = new BfField(this.bfCache_0, fieldDef, this); this.fieldCollection_0.method_1(item); } foreach (MethodDefinition methodDef in this.typeDefinition_0.Methods) { BfMethod bfMethod = new BfMethod(this.bfCache_0, methodDef, this); this.methodCollection_0.method_1(bfMethod); this.bfAssembly_0.method_5().Add(bfMethod.UniqueName, bfMethod); } foreach (MethodDefinition methodDef in this.typeDefinition_0.Constructors) { BfMethod bfMethod = new BfMethod(this.bfCache_0, methodDef, this); this.methodCollection_0.method_1(bfMethod); this.bfAssembly_0.method_5().Add(bfMethod.UniqueName, bfMethod); } foreach (EventDefinition eventDef in this.typeDefinition_0.Events) { BfEvent item2 = new BfEvent(this.bfCache_0, eventDef, this); this.eventCollection_0.method_1(item2); } this.int_1 = this.typeDefinition_0.GenericParameters.Count; this.method_6(); this.typeCollection_0.ClearHash(); this.fieldCollection_0.ClearHash(); this.methodCollection_0.ClearHash(); this.eventCollection_0.ClearHash(); } } }
internal BfMethod method_5(MethodReference methodReference_0) { BfAssembly bfAssembly; BfMethod result; if (methodReference_0.DeclaringType.Scope is AssemblyNameReference) { bfAssembly = this.dictionary_0[((AssemblyNameReference)methodReference_0.DeclaringType.Scope).FullName]; } else { if (!(methodReference_0.DeclaringType.Scope is ModuleDefinition)) { Logger.LogWarning("GetBfMethod1", "Couldn't find assembly for method: " + methodReference_0.ToString()); result = null; return(result); } bfAssembly = this.dictionary_0[((ModuleDefinition)methodReference_0.DeclaringType.Scope).Assembly.Name.FullName]; } string text = BfMethod.smethod_0(methodReference_0); BfMethod bfMethod; bfAssembly.method_5().TryGetValue(text, out bfMethod); if (bfMethod == null) { BfType bfType = this.method_7(methodReference_0.DeclaringType); List <MethodDefinition> list = new List <MethodDefinition>(); list.AddRange(bfType.method_2().Constructors.Cast <MethodDefinition>()); list.AddRange(bfType.method_2().Methods.Cast <MethodDefinition>()); foreach (MethodDefinition current in list) { if (text == BfMethod.smethod_0(current)) { bfMethod = new BfMethod(this, current, bfType); this.methodCollection_0.method_1(bfMethod); bfType.Methods.method_1(bfMethod); bfAssembly.method_5().Add(bfMethod.UniqueName, bfMethod); break; } } if (bfMethod == null) { Logger.LogWarning("GetBfMethod2", "Couldn't find: " + text); } } result = bfMethod; return(result); }
private static double smethod_8(BfMethod bfMethod_0) { return((double)((BfMethod)bfMethod_0).OverloadCount); }
private static double smethod_7(BfMethod bfMethod_0) { return((double)((BfMethod)bfMethod_0).ParameterCount); }
private static double smethod_6(BfMethod bfMethod_0) { return((double)((BfMethod)bfMethod_0).Calls.Count); }
private static double smethod_4(BfMethod bfMethod_0) { return((double)((BfMethod)bfMethod_0).LogicalLineCount); }
private static double smethod_3(BfMethod bfMethod_0) { return(((BfMethod)bfMethod_0).PercentComment); }
private static double smethod_2(BfMethod bfMethod_0) { return((double)((BfMethod)bfMethod_0).Cyclomatic); }
private static double smethod_0(BfMethod bfMethod_0) { return((double)((BfMethod)bfMethod_0).ILCount); }
private static int smethod_5(BfMethod bfMethod_0) { return(bfMethod_0.ILCount); }
private static int smethod_4(BfMethod bfMethod_0) { return(bfMethod_0.Cyclomatic); }
private static int smethod_3(BfMethod bfMethod_0) { return(bfMethod_0.CommentLineCount); }
private static int smethod_2(BfMethod bfMethod_0) { return(bfMethod_0.LogicalLineCount); }
private static int smethod_1(BfMethod bfMethod_0) { return(bfMethod_0.PhysicalLineCount); }
private static double smethod_9(BfMethod bfMethod_0) { return((double)((BfMethod)bfMethod_0).TypesUsed.Count); }
private static double smethod_1(BfMethod bfMethod_0) { return((double)((BfMethod)bfMethod_0).PhysicalLineCount); }
private static bool smethod_13(BfMethod bfMethod_0) { return(!bfMethod_0.IsInCoreAssembly); }