Beispiel #1
0
 internal override void Walk(EmitContext ec)
 {
     if (ec.Emitting)
     {
         if (lit is int)
         {
             ec.EmitRNum((int)lit);
         }
         else
         {
             throw new NotSupportedException("bug: literal type not supported: " + lit.GetType().Name);
         }
     }
 }
Beispiel #2
0
 internal override void Walk(EmitContext ec)
 {
     if(ec.Emitting) {
         if(lit is int) {
             ec.EmitRNum((int)lit);
         } else {
             throw new NotSupportedException("bug: literal type not supported: " + lit.GetType().Name);
         }
     }
 }