Example #1
0
 public override void AddByteCodeVisitor(ByteCodeVisitor visitor)
 {
     if (Visitors == null)
     {
         Visitors = new List <ByteCodeVisitor>();
     }
     Visitors.Add(visitor);
 }
Example #2
0
 internal virtual void AddSources <T1>(IEnumerable <T1> sources, ByteCodeVisitor visitor) where T1 : ByteCodes
 {
     lock (this)
     {
         foreach (ByteCodes source in sources)
         {
             visitor.VisitByteCode(source.Name(), source.Bytes().duplicate());
             _bytecodes[source.Name()] = source;
         }
     }
 }