示例#1
0
 static Model.TypeDefinition GetTypeDef(ulong id, Model.SchemaModel model)
 {
     foreach (var defs in model.FilesToGenerate.Select(f => f.NestedTypes))
     {
         if (GetTypeDef(id, defs) is Model.TypeDefinition def)
         {
             return(def);
         }
     }
     return(null);
 }
示例#2
0
 static Generator.CodeGenerator NewGeneratorFor(Model.SchemaModel model)
 => new Generator.CodeGenerator(model, new Generator.GeneratorOptions());