Microsoft.JScript.Typeof.TranslateToIL C# (CSharp) Method

TranslateToIL() private method

private TranslateToIL ( ILGenerator il, Type rtype ) : void
il ILGenerator
rtype System.Type
return void
      internal override void TranslateToIL(ILGenerator il, Type rtype){
        if (this.operand is Binding)
          //Make sure that no exception is thrown if the operand is an undefined identifier
          ((Binding)this.operand).TranslateToIL(il, Typeob.Object, true);
        else
          this.operand.TranslateToIL(il, Typeob.Object);
        il.Emit(OpCodes.Call, CompilerGlobals.jScriptTypeofMethod);
        Convert.Emit(this, il, Typeob.String, rtype);
      }
    }