Example #1
0
File: EmitEnums.cs Project: 0xCM/z0
 public EmitEnumsStep(IWfRuntime wf, WfHost host, ClrAssemblyAdapter src)
 {
     Wf      = wf;
     Host    = host;
     Source  = src;
     Target  = Wf.Db().Table(ClrEnumRecord.TableId, Source.Part);
     Records = default;
 }
Example #2
0
        public Index <ClrEnumRecord> EmitEnumRecords(ClrAssemblyAdapter src, FS.FilePath dst)
        {
            var records = Enums.records(src);

            if (records.Length != 0)
            {
                var t         = default(ClrEnumRecord);
                var formatter = Tables.formatter <ClrEnumRecord>(32);
                var flow      = Wf.EmittingTable <ClrEnumRecord>(dst);
                var counter   = 0u;
                Execute(records, ref counter, formatter, dst);
                Wf.EmittedTable(flow, counter);
            }
            return(records);
        }