コード例 #1
0
ファイル: QyotoHooks.cs プロジェクト: corngood/assemblygen
    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();
    }
コード例 #2
0
ファイル: QyotoHooks.cs プロジェクト: corngood/assemblygen
 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();
 }
コード例 #3
0
ファイル: QyotoHooks.cs プロジェクト: KDE/assemblygen
 public void PreClassesHook(List<IntPtr> excludedMethods)
 {
     PropertyGenerator pg = new PropertyGenerator(Data, Translator, this.Documentation);
     pg.Run();
     excludedMethods.AddRange(pg.PropertyMethods);
 }