Siegfried Pammer
63b626716f
Refactoring and cleanup of SimplifyCascadingIfStatements and other switch transforms.
8 years ago
Siegfried Pammer
67272e58ef
SwitchOnStringTransform: Remove extra variables introduced by switch pattern.
8 years ago
Siegfried Pammer
d39a21afd7
SimplifyCascadingIfStatements: Remove extra variable declarations before switch, if possible.
8 years ago
Siegfried Pammer
800a635663
Fix bug in SimplifyCascadingIfStatements
8 years ago
Siegfried Pammer
155b97b32e
SwitchOnStringTransform: fix Roslyn transform
8 years ago
Siegfried Pammer
bd165642cb
Fix #489 : Add support for switch statement pattern using Hashtable
8 years ago
Siegfried Pammer
43c2f891a0
SwitchOnStringTransform: make sure switch variable is of type string in Roslyn case.
8 years ago
Siegfried Pammer
621e355f36
Adapt SwitchOnStringTransform to switch instruction changes.
8 years ago
Daniel Grunwald
8a68a94d35
Simplify use of SwitchInstruction in ILAst
* the default case is now handled as a normal case
* when dealing with basic blocks, SwitchInstruction will be the last instruction in the block
* introduced ILAst instruction for 'goto case'
8 years ago
Siegfried Pammer
0fa58c3d53
Fix #567 : switch statement not properly decompile
8 years ago
Siegfried Pammer
ef4dd6431e
Add documentation to InlineReturnTransform and SwitchOnStringTransform
8 years ago
Siegfried Pammer
930d142a62
Fix bug in SwitchOnStringTransform introduced by 9719926b6bc1e43c9d43d811e5c27d9e797209b8: Ignore exit instruction if condition is not inverted. Otherwise we need a special case for br and leave.
8 years ago
Siegfried Pammer
9719926b6b
Fix some more bugs in SwitchOnStringTransform
8 years ago
Siegfried Pammer
4394250d71
Fix Switch(string)-detection in various cases
8 years ago
Siegfried Pammer
e0df621e44
Implement translation of cascading if-statements with string comparisons to switch(string).
8 years ago
Siegfried Pammer
41aa4573d9
Fix #498 : switches implemented by the compiler as Dictionary lookup are not correctly decompiled
8 years ago
Siegfried Pammer
ddd5f43b41
[switch] Add basic SwitchOnStringTransform for Roslyn switch on strings.
8 years ago