@@ -2429,18 +2429,9 @@ module TestAutoQuoteAtStaticMethodCalls =
24292429static member PlotThreeArg ( w : int , [<ReflectedDefinition>] x : Expr < 'T >, y : int ) =
24302430 sprintf" %A " ( w, x, y) |> cleanup
24312431
2432- static member PlotRaw ( [<ReflectedDefinition>] x : Expr ) =
2433- sprintf" %A " x|> cleanup
2434-
24352432static member PlotParams ( [<ReflectedDefinition; System.ParamArray>] x : Expr < int >[]) =
24362433 sprintf" %A " x|> cleanup
24372434
2438- static member PlotRawParams ( [<ReflectedDefinition; System.ParamArray>] x : Expr []) =
2439- sprintf" %A " x|> cleanup
2440-
2441- static member RawParams ( [<System.ParamArray>] x : Expr []) =
2442- sprintf" %A " x|> cleanup
2443-
24442435static member PlotEval ( [<ReflectedDefinition( true ) >] x : Expr < 'T >) =
24452436 sprintf" %A " x|> cleanup
24462437
@@ -2458,32 +2449,14 @@ module TestAutoQuoteAtStaticMethodCalls =
24582449
24592450 C.Plot( x+ y* z) |> shouldEqual" testd109701" " Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])"
24602451
2461- C.PlotRaw( x+ y* z) |> shouldEqual" testd109702" " Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])"
2462-
24632452 C.PlotTwoArg( x+ y* z, 108 ) |> shouldEqual" testd109703" " (Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])]),108)"
24642453
24652454 C.PlotThreeArg( 107 , x+ y* z, 108 )|> shouldEqual" testd109704" " (107,Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])]),108)"
24662455
2467- C.RawParams() |> shouldEqual" testd109705" " [||]"
2468-
2469- C.RawParams(<@ xb&& yb|| zb@>, <@ x+ y* z@>) |> shouldEqual" testd109706" " [|IfThenElse(IfThenElse(PropertyGet(None,xb,[]),PropertyGet(None,yb,[]),Value(false)),Value(true),ValueWithName(true,zb));Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"
2470-
2471- C.PlotRawParams() |> shouldEqual" testd109707" " [||]"
2472-
24732456 C.PlotParams( 1 , 2 ) |> shouldEqual" testd109708" " [|Value(1);Value(2)|]"
24742457
24752458 C.PlotParams( x+ y) |> shouldEqual" testd109709" " [|Call(None,op_Addition,[PropertyGet(None,x,[]),PropertyGet(None,y,[])])|]"
24762459
2477- C.PlotRawParams( x+ y* z) |> shouldEqual" testd10970A" " [|Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"
2478-
2479- C.PlotRawParams(( xb&& yb|| zb), ( x+ y* z)) |> shouldEqual" testd10970B" " [|IfThenElse(IfThenElse(PropertyGet(None,xb,[]),PropertyGet(None,yb,[]),Value(false)),Value(true),ValueWithName(true,zb));Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"
2480-
2481- C.PlotRawParams( x+ y* z, x+ y* z, x+ y* z) |> shouldEqual" testd10970C" " [|Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])]);Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])]);Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"
2482-
2483- C.PlotRawParams( [| |]) |> shouldEqual" testd10970D" " [||]"
2484-
2485- C.PlotRawParams( [| <@@ x+ y* z@@> |]) |> shouldEqual" testd10970E" """ [|Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"""
2486-
24872460 C.Plot( fun ( x , y , z ) -> xb&& yb|| zb) |> shouldEqual" testd10970F" " Lambda(tupledArg,Let(x,TupleGet(tupledArg,0),Let(y,TupleGet(tupledArg,1),Let(z,TupleGet(tupledArg,2),IfThenElse(IfThenElse(PropertyGet(None,xb,[]),PropertyGet(None,yb,[]),Value(false)),Value(true),ValueWithName(true,zb))))))"
24882461
24892462 C.Plot( fun x -> x) |> shouldEqual" testd109710" " Lambda(x,x)"
@@ -2510,21 +2483,12 @@ module TestAutoQuoteAtInstanceMethodCalls =
25102483member __.PlotThreeArg ( w : int , [<ReflectedDefinition>] x : Expr < 'T >, y : int ) =
25112484 sprintf" %A " ( w, x, y) |> cleanup
25122485
2513- member __.PlotRaw ( [<ReflectedDefinition>] x : Expr ) =
2514- sprintf" %A " x|> cleanup
2515-
25162486member __.PlotParams ( [<ReflectedDefinition; System.ParamArray>] x : Expr < int >[]) =
25172487 sprintf" %A " x|> cleanup
25182488
2519- member __.PlotRawParams ( [<ReflectedDefinition; System.ParamArray>] x : Expr []) =
2520- sprintf" %A " x|> cleanup
2521-
25222489member __.Item ( [<ReflectedDefinition>] x : Expr < 'T >) =
25232490 sprintf" %A " x|> cleanup
25242491
2525- member __.RawParams ( [<System.ParamArray>] x : Expr []) =
2526- sprintf" %A " x|> cleanup
2527-
25282492member __.PlotEval ( [<ReflectedDefinition( true ) >] x : Expr < 'T >) =
25292493 sprintf" %A " x|> cleanup
25302494
@@ -2570,32 +2534,14 @@ module TestAutoQuoteAtInstanceMethodCalls =
25702534
25712535 c.[ x+ y* z] |> shouldEqual" testd109701" " Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])"
25722536
2573- c.PlotRaw( x+ y* z) |> shouldEqual" testd109702" " Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])"
2574-
25752537 c.PlotTwoArg( x+ y* z, 108 ) |> shouldEqual" testd109703" " (Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])]),108)"
25762538
25772539 c.PlotThreeArg( 107 , x+ y* z, 108 )|> shouldEqual" testd109704" " (107,Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])]),108)"
25782540
2579- c.RawParams() |> shouldEqual" testd109705" " [||]"
2580-
2581- c.RawParams(<@ xb&& yb|| zb@>, <@ x+ y* z@>) |> shouldEqual" testd109706" " [|IfThenElse(IfThenElse(PropertyGet(None,xb,[]),PropertyGet(None,yb,[]),Value(false)),Value(true),ValueWithName(true,zb));Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"
2582-
2583- c.PlotRawParams() |> shouldEqual" testd109707" " [||]"
2584-
25852541 c.PlotParams( 1 , 2 ) |> shouldEqual" testd109708" " [|Value(1);Value(2)|]"
25862542
25872543 c.PlotParams( x+ y) |> shouldEqual" testd109709" " [|Call(None,op_Addition,[PropertyGet(None,x,[]),PropertyGet(None,y,[])])|]"
25882544
2589- c.PlotRawParams( x+ y* z) |> shouldEqual" testd10970A" " [|Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"
2590-
2591- c.PlotRawParams(( xb&& yb|| zb), ( x+ y* z)) |> shouldEqual" testd10970B" " [|IfThenElse(IfThenElse(PropertyGet(None,xb,[]),PropertyGet(None,yb,[]),Value(false)),Value(true),ValueWithName(true,zb));Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"
2592-
2593- c.PlotRawParams( x+ y* z, x+ y* z, x+ y* z) |> shouldEqual" testd10970C" " [|Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])]);Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])]);Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"
2594-
2595- c.PlotRawParams( [| |]) |> shouldEqual" testd10970D" " [||]"
2596-
2597- c.PlotRawParams( [| <@@ x+ y* z@@> |]) |> shouldEqual" testd10970E" """ [|Call(None,op_Addition,[PropertyGet(None,x,[]),Call(None,op_Multiply,[PropertyGet(None,y,[]),ValueWithName(1,z)])])|]"""
2598-
25992545 c.Plot( fun ( x , y , z ) -> xb&& yb|| zb) |> shouldEqual" testd10970F" " Lambda(tupledArg,Let(x,TupleGet(tupledArg,0),Let(y,TupleGet(tupledArg,1),Let(z,TupleGet(tupledArg,2),IfThenElse(IfThenElse(PropertyGet(None,xb,[]),PropertyGet(None,yb,[]),Value(false)),Value(true),ValueWithName(true,zb))))))"
26002546
26012547 c.Plot( fun x -> x) |> shouldEqual" testd109710" " Lambda(x,x)"
@@ -2618,7 +2564,6 @@ module TestsForUsingReflectedDefinitionArgumentsAsFirstClassValues =
26182564open System
26192565
26202566type FirstClassTests () =
2621- static member PlotRawExpr ( [<ReflectedDefinition>] x : Expr ) = x.ToString()
26222567static member PlotExpr ( [<ReflectedDefinition>] x : Expr < 'T >) = x.ToString()
26232568static member PlotExprOverloadedByType ( [<ReflectedDefinition>] x : Expr < int >) = x.ToString()
26242569static member PlotExprOverloadedByType ( [<ReflectedDefinition>] x : Expr < string >) = x.ToString()
@@ -2666,8 +2611,6 @@ module TestsForUsingReflectedDefinitionArgumentsAsFirstClassValues =
26662611( FirstClassTests.PlotLinqOverloadedByShape: Expression< Func< int, int>> -> string) // doesn't auto-quote implicit var
26672612// EXPECTED AND CONSISTENT: (C.PlotLinqOverloadedByShape : (int -> int) -> string) // auto- - though not very useful
26682613
2669- ( FirstClassTests.PlotRawExpr: Expr-> string) // doesn't auto-quote implicit var
2670- ( FirstClassTests.PlotRawExpr: obj-> string) // does auto-quote implicit var
26712614( FirstClassTests.PlotExpr: Expr< int> -> string) // doesn't auto-quote implicit var
26722615( FirstClassTests.PlotExpr: int-> string) // does auto-quote implicit var
26732616( FirstClassTests.PlotExprOverloadedByType: Expr< int> -> string) // doesn't auto-quote implicit var