Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decompiler Feature Request: support TupleGet expressions #2

Closed
GoogleCodeExporter opened this issue Jun 21, 2015 · 4 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter
Copy link

commented Jun 21, 2015

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

This comment has been minimized.

Copy link
Author

commented Jun 21, 2015

[deleted comment]
1 similar comment
@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Jun 21, 2015

[deleted comment]
@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Jun 21, 2015

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

  • Changed state: Fixed
@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

commented Jun 21, 2015

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

  • Added labels: Milestone-Release1.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.