Ejemplo n.º 1
0
 private void handleType(TypeDefinition type)
 {
     if (type.Name == "<Module>")
         return;
     if (type.IsClass) {
         var classDef = new Class(_file, type.Namespace, type.Name, "public", 0, 0);
         _writer.WriteClass(classDef);
         handleTypeMembers(type);
     }
     if (type.IsInterface) {
         var iface = new Interface(_file, type.Namespace, type.Name, "public", 0, 0);
         _writer.WriteInterface(iface);
         handleTypeMembers(type);
     }
     if (type.IsEnum) {
         var enm = new EnumType(_file, type.Namespace, type.Name, "public", 0, 0);
         _writer.WriteEnum(enm);
         handleTypeMembers(type);
     }
     foreach (var child in type.NestedTypes)
         handleType(child);
 }
Ejemplo n.º 2
0
 public void AddInterface(Interface iface)
 {
     writeSignature("interface", iface, new[] { "typesearch" });
 }
 public void AddInterface(Interface iface)
 {
     Interfaces.Add(iface);
 }
Ejemplo n.º 4
0
 public long AddInterface(Interface iface)
 {
     return(add(iface, _interfaces));
 }