Exemplo n.º 1
0
 internal MSAst.Expression /*!*/ Operation(Type /*!*/ resultType, PythonOperationKind operation, MSAst.Expression arg0, MSAst.Expression arg1)
 {
     if (resultType == typeof(object))
     {
         return(new PythonDynamicExpression2(
                    Binders.BinaryOperationBinder(
                        PyContext,
                        operation
                        ),
                    _mode,
                    arg0,
                    arg1
                    ));
     }
     return(CompilationMode.Dynamic(
                Binders.BinaryOperationBinder(
                    PyContext,
                    operation
                    ),
                resultType,
                arg0,
                arg1
                ));
 }