Siegfried Pammer
|
62fc4bc1a3
|
Fix #1858, Fix #2188: Remove variables that contain copies of display-class variables.
|
5 years ago |
Daniel Grunwald
|
6757295b3b
|
Fix #2379: Keep `return` statements around in original form for ConditionDetection, only transform to fall-through block-exit at the end of the transform pipeline.
This fixes an issue where `return` statements within try-blocks could turn into `goto` statements.
|
5 years ago |
Siegfried Pammer
|
584d1847df
|
Fix #2405: Assertion fail in TDCU
|
5 years ago |
Siegfried Pammer
|
2d65deffda
|
Fix frontends.sln build.
|
5 years ago |
Siegfried Pammer
|
ba39dd5c55
|
Fix #2354: decompilation of unary and binary operators with nullable value types.
|
5 years ago |
Siegfried Pammer
|
d92dd153fc
|
#2390: Make sure all unused captured variables are removed even in lambdas.
|
5 years ago |
Siegfried Pammer
|
d54016ce8f
|
#2390: Add support for generic object initializers.
|
5 years ago |
Daniel Grunwald
|
bd9aabeae2
|
Update to dotnet-format 5.1.225507.
This makes the formatting expected by our CI consistent with that generated by VS2019.9.
|
5 years ago |
Siegfried Pammer
|
76227af89d
|
Fix #1749, fix #2339, fix #2353: Add support for rethrow in async exception handlers, fix await catch/finally patterns for complex methods.
|
5 years ago |
Siegfried Pammer
|
d2fc380e0e
|
Fix #2349: Use proper ExpressionType with DynamicCompoundAssign.
|
5 years ago |
Siegfried Pammer
|
d60f158dfd
|
Fix #2342: Do not generate empty names for foreach loop variables.
|
5 years ago |
Siegfried Pammer
|
4ae41a855e
|
Fix #2321: Missing readonly modifier for ref local
|
5 years ago |
Daniel Grunwald
|
f726a0b73e
|
#nullable enable for typesystem and ILInstruction base class
|
6 years ago |
Siegfried Pammer
|
67be41a998
|
#2294: Fix potential NRE: finalStore is accessed before null check.
|
6 years ago |
文煌
|
581a1de185
|
fix https://github.com/icsharpcode/ILSpy/issues/2288
|
6 years ago |
Daniel Grunwald
|
6951ccb1a2
|
Fix #2260: switch(string) transform: handle empty cases where the C# compiler optimizes out the `if`
e.g.
```
switch (<PrivateImplementationDetails>.ComputeStringHash(text2))
{
case 1288728352u:
_ = text2 == "rowno";
break;
...
```
|
6 years ago |
Siegfried Pammer
|
669fe6417e
|
Fix #2280: Add additional checks to GenerateVariableName
|
6 years ago |
Siegfried Pammer
|
66850e4725
|
Fix #2270: I love deleting code that causes problems and no longer makes any sense at all!
|
6 years ago |
Siegfried Pammer
|
288c6a75e7
|
Use ToLower instead of ToLowerInvariant.
|
6 years ago |
Siegfried Pammer
|
dd84f17ea1
|
#2263: Fix IsLowerCase to take script without upper/lower case distinction into account.
|
6 years ago |
Siegfried Pammer
|
06bae54b91
|
Fix #2263: Add lower-case type and member names to the list of existing names, to prevent collisions.
|
6 years ago |
Siegfried Pammer
|
3676107379
|
Fix #2266: Failed to decompile complex expression tree.
|
6 years ago |
Siegfried Pammer
|
3df82cf33b
|
Add support for 'with' expressions
|
6 years ago |
Siegfried Pammer
|
9932b5d9f2
|
Fix #2230: do not emit directly consecutive null propagation operators.
|
6 years ago |
Siegfried Pammer
|
c986dbe889
|
Fixes #2232: We only need a small percentage of features provided by Humanizer. Therefore we copy the relevant parts and remove the dependency in order to avoid such problems in the future.
|
6 years ago |
Siegfried Pammer
|
d0d8299ef5
|
Use Name from DynamicInvokeMemberInstruction when inferring variable names.
|
6 years ago |
Siegfried Pammer
|
b7d2eec41d
|
#2199: Add support for VB cached delegate initialization
|
6 years ago |
Siegfried Pammer
|
d3b0e4cd72
|
Fix #2196: Add support for extern local functions.
|
6 years ago |
Siegfried Pammer
|
a7f58e8657
|
Fix build and use specific version of dotnet-format.
|
6 years ago |
Siegfried Pammer
|
3a7c69e5b9
|
Fix #2192: Add support for VB.NET delegate construction
|
6 years ago |
Siegfried Pammer
|
be57dc454c
|
Run tests with different versions of Roslyn
|
6 years ago |
Daniel Grunwald
|
80cf72e498
|
#2182: Move "Transform call to struct constructor" from EarlyExpressionTransforms to ILReader.
This fixes the evaluation order for such calls (and an assertion in StObj.CheckTargetSlot).
|
6 years ago |
Siegfried Pammer
|
2530c9a2ce
|
#2182: Do not inline switch value, in case variable is reused.
|
6 years ago |
Siegfried Pammer
|
2612a06a11
|
Fix #2174: Some compilers produce display class ctors with unused local variables
(cherry picked from commit 71b54e87a0)
|
6 years ago |
Siegfried Pammer
|
71b54e87a0
|
Fix #2174: Some compilers produce display class ctors with unused local variables
|
6 years ago |
Daniel Grunwald
|
e8b35a481a
|
Fix #2156: range syntax not being detected correctly in some cases
|
6 years ago |
Siegfried Pammer
|
41edef710e
|
Fix build.
|
6 years ago |
Siegfried Pammer
|
0b0a6d94a8
|
Add support for local function pointers.
|
6 years ago |
Daniel Grunwald
|
3831b42197
|
Properly support `calli` instruction and its interaction with function pointer types.
|
6 years ago |
Siegfried Pammer
|
5d244efab6
|
Fix #2149: handle uninitialized fields of display classes as variables with HasInitialValue = true. Might happen in obfuscated code.
|
6 years ago |
Daniel Grunwald
|
5bd8c69a48
|
Disable transform for Span<T> initialization from field with RVA if "ArrayInitializers" setting is disabled.
https://github.com/ashmind/SharpLab/issues/542
|
6 years ago |
Daniel Grunwald
|
bb99e9668a
|
Fix #2115: Re-introduce the evaluation order bug #2050 when a language version <=C# 5 is selected.
|
6 years ago |
Siegfried Pammer
|
c74680df33
|
Fix #1781: TDCU: Support methods without .locals init
|
6 years ago |
Siegfried Pammer
|
52263da8df
|
#2129: prevent state-machines from being treated as display classes.
|
6 years ago |
dotnet format
|
0d9f871a4f
|
#2128: Reformat the whole code base.
|
6 years ago |
Siegfried Pammer
|
e320819103
|
Formatting change: while-condition loop to do-while loop.
|
6 years ago |
Siegfried Pammer
|
a6bbccae8d
|
Fix #2123: switch on string detection:
1) Do not remove switchValueVar, if it is used elsewhere.
2) Support empty case blocks in SimplifyCascadingIfStatements transform
|
6 years ago |
Siegfried Pammer
|
55842e4bfc
|
Fix #2120: An expression tree may not contain a base access
|
6 years ago |
Siegfried Pammer
|
562699fc94
|
Add support for C# 8.0 await foreach
|
6 years ago |
Siegfried Pammer
|
7ed4a736f3
|
Fix #2103: Support for `Stackalloc initializers` not working for `byte`
|
6 years ago |