Example #1
0
 IEnumerable <string> IGenEmitter.Emit(GenContext context, GenSpec spec)
 => Emit(context, (T)spec);
Example #2
0
 public override IEnumerable <string> Emit(GenContext context, PocoPropertySpec spec)
 {
     yield return($"{spec.PropertyType} {spec.TargetName} " + "{get;set;}");
 }
Example #3
0
 /// <summary>
 /// Generates the code as defined by a spec
 /// </summary>
 /// <param name="spec">The defining spec</param>
 /// <returns></returns>
 public abstract IEnumerable <string> Emit(GenContext context, T spec);
Example #4
0
 static void Test1()
 {
     var context = new GenContext("", "", "Meta.Core");
     var spec    = new NewTypeSpec("ZipCode", "string");
     var emit    = Emission.Emit(context, spec);
 }