SwensenSoftware / unquote

Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
http://www.swensensoftware.com/unquote
Apache License 2.0
287 stars 25 forks source link

Decompiler Feature Request: support TupleGet expressions #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Example 1:

source <@ let a,b = (1,2) in a,b @>

produces

let patternInput = (1, 2) in let b = TupleGet (patternInput, 1) in let a = 
TupleGet (patternInput, 0) in (a, b)

(notice that patternInput expressions are a special case to be addressed at 
another time).

Example 2:

let t = (1,2)
source <@ let a,b = t in a,b @>

produces

let b = TupleGet (PropertyGet (None, System.Tuple`2[System.Int32,System.Int32] 
t, []), 1) in let a = TupleGet (PropertyGet (None, 
System.Tuple`2[System.Int32,System.Int32] t, []), 0) in (a, b)

Original issue reported on code.google.com by stephen....@gmail.com on 15 Feb 2011 at 1:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
rev. 129: implemented basic support for TupleGet: quite verbose though, need to 
support better handling of patternInput

Original comment by stephen....@gmail.com on 16 Feb 2011 at 2:42

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 17 Mar 2011 at 4:12