예제 #1
0
 /// <summary>
 /// Translates the type declaration.
 /// </summary>
 /// <param name="type">The type declaration.</param>
 private void TranslateTypeDeclaration(ITypeDeclaration type)
 {
   if (type != null)
   {
     ClassModelData data = this.populator.BuildModelFromType(type);
     ClassDiagramRenderer renderer = new ClassDiagramRenderer();
     renderer.Export(data);
   }
 }
예제 #2
0
 /// <summary>
 /// Translates the namespace declaration.
 /// </summary>
 /// <param name="typeNamespace">The type namespace.</param>
 private void TranslateNamespaceDeclaration(INamespace typeNamespace)
 {
   if (typeNamespace != null)
   {
     IList<ClassModelData> modelData = this.populator.BuildModelFromNamespace(typeNamespace);
     ClassDiagramRenderer renderer = new ClassDiagramRenderer();
     renderer.Export(modelData);
   }
 }