public void Execute(ModuleDefinition moduleDefinition) { foreach (var type in moduleDefinition.GetAllTypeDefinitions()) { if (!type.IsClass) { continue; } typeProcessor.Execute(type); } }
public void Execute(List <TypeDefinition> classes) { foreach (var type in classes) { var baseType = implementsInterfaceFinder.HierarchyImplementsIFreezable(type); if (baseType == null) { continue; } var checkMethod = freezeCheckerInjector.Execute(baseType); var typeProcessor = new TypeProcessor(logInfo, checkMethod, type); typeProcessor.Execute(); } }
public void Execute(List<TypeDefinition> classes) { foreach (var type in classes) { var baseType = implementsInterfaceFinder.HierarchyImplementsIFreezable(type); if (baseType == null) { continue; } var checkMethod = freezeCheckerInjector.Execute(baseType); var typeProcessor = new TypeProcessor(logInfo, checkMethod, type); typeProcessor.Execute(); } }