Ejemplo n.º 1
0
    public void PreClassesHook()
    {
        IDictionary <string, string> documentation = Documentation.Get(Data.Docs);

        foreach (CodeTypeDeclaration type in from smokeType in this.Data.SmokeTypeMap
                 where string.IsNullOrEmpty((string)smokeType.Value.UserData["parent"])
                 select smokeType.Value)
        {
            foreach (CodeTypeDeclaration nestedType in type.Members.OfType <CodeTypeDeclaration>().Where(t => !t.IsEnum))
            {
                this.GetClassDocs(nestedType, string.Format("{0}::{1}", type.Name, nestedType.Name),
                                  string.Format("{0}-{1}", type.Name, nestedType.Name), documentation);
            }
            this.GetClassDocs(type, type.Name, type.Name, documentation);
        }
        PropertyGenerator pg = new PropertyGenerator(Data, Translator, this.memberDocumentation);

        pg.Run();
    }
Ejemplo n.º 2
0
 public void PreClassesHook()
 {
     IDictionary<string, string> documentation = Documentation.Get(Data.Docs);
     foreach (CodeTypeDeclaration type in from smokeType in this.Data.SmokeTypeMap
                                          where string.IsNullOrEmpty((string) smokeType.Value.UserData["parent"])
                                          select smokeType.Value)
     {
         foreach (CodeTypeDeclaration nestedType in type.Members.OfType<CodeTypeDeclaration>().Where(t => !t.IsEnum))
         {
             this.GetClassDocs(nestedType, string.Format("{0}::{1}", type.Name, nestedType.Name),
                               string.Format("{0}-{1}", type.Name, nestedType.Name), documentation);
         }
         this.GetClassDocs(type, type.Name, type.Name, documentation);
     }
     PropertyGenerator pg = new PropertyGenerator(Data, Translator, this.memberDocumentation);
     pg.Run();
 }
Ejemplo n.º 3
0
 public void PreClassesHook(List<IntPtr> excludedMethods)
 {
     PropertyGenerator pg = new PropertyGenerator(Data, Translator, this.Documentation);
     pg.Run();
     excludedMethods.AddRange(pg.PropertyMethods);
 }