public static void CollectAttributeNamespaces(MetadataModule module, HashSet <string> namespaces) { var collector = new RequiredNamespaceCollector(namespaces); collector.HandleAttributes(module.GetAssemblyAttributes()); collector.HandleAttributes(module.GetModuleAttributes()); }
public static void CollectNamespaces(MetadataModule module, HashSet <string> namespaces) { var collector = new RequiredNamespaceCollector(namespaces); foreach (var type in module.TypeDefinitions) { collector.CollectNamespaces(type, module, (CodeMappingInfo)null); } collector.HandleAttributes(module.GetAssemblyAttributes()); collector.HandleAttributes(module.GetModuleAttributes()); }
public static void CollectNamespaces(IEntity entity, MetadataModule module, HashSet <string> namespaces) { var collector = new RequiredNamespaceCollector(namespaces); collector.CollectNamespaces(entity, module); }