コード例 #1
0
ファイル: codegen.cs プロジェクト: retahc/old-code
 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
ファイル: codegen.cs プロジェクト: emtees/old-code
 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);
         }
     }
 }