示例#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);
         }
     }
 }
示例#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);
         }
     }
 }