public static void AddTypes (ProjectProperties projectprop, MetricsContext ctx)
		{
			ProjectDom dom = ProjectDomService.GetProjectDom (projectprop.Project);
			foreach (IType ob in dom.Types) {
				projectprop.AddInstance(ob);
			}
		}
		public static void AddTypes (ProjectProperties projectprop, MetricsContext ctx)
		{
			var dom = TypeSystemService.GetCompilation (projectprop.Project);
			foreach (var ob in dom.MainAssembly.GetAllTypeDefinitions ()) {
				projectprop.AddInstance(ob);
			}
		}
Exemple #3
0
        public static void AddTypes(ProjectProperties projectprop, MetricsContext ctx)
        {
            ProjectDom dom = ProjectDomService.GetProjectDom(projectprop.Project);

            foreach (IType ob in dom.Types)
            {
                projectprop.AddInstance(ob);
            }
        }
        public static void AddTypes(ProjectProperties projectprop, MetricsContext ctx)
        {
            var dom = TypeSystemService.GetCompilation(projectprop.Project);

            foreach (var ob in dom.MainAssembly.GetAllTypeDefinitions())
            {
                projectprop.AddInstance(ob);
            }
        }