kevingadd/JSIL — Issue #48: StringSwitch.cs produces nested if statements with gotos instead of a switch statement
Author: kevingadd
Created: 2011-12-12 01:31:39+00:00
State: open
Labels: Performance, Usability

When translated, https://github.com/kevingadd/JSIL/blob/master/Tests/SpecialTestCases/StringSwitch.cs produces a series of nested if statements that use gotos, instead of a switch statement.

I think this is because ILSpy fails to recognize it as a switch statement and leaves it alone. A new transform pass similar to issue #39's might be able to detect this pattern and turn it back into a switch statement.