Siegfried Pammer
087cb2489d
Fix #1049 : Unimplemented decompiler settings
6 years ago
Siegfried Pammer
29527b804e
Fix #1392 : LoopDetection should take switch block containers into account in IncludeNestedContainers.
6 years ago
Siegfried Pammer
ab55086cd7
Use ILRange API in AsyncAwaitDecompiler.
6 years ago
Siegfried Pammer
c1fca21e8a
Make ILRange field private - introduce public API for IL range manipulation.
6 years ago
Daniel Grunwald
f1c8142ce2
PDB generator now can emit "method stepping information" for async functions.
6 years ago
Siegfried Pammer
4e290b545a
Merge ILRanges of DelegateConstruction newobj + ldftn into ILFunction.
6 years ago
Daniel Grunwald
763683748b
Emit debug info for display class locals, so that the debugger can show the values of captured variables.
6 years ago
Siegfried Pammer
84cf4ea6a1
Cleanup and fix ILRanges in DelegateConstruction.
6 years ago
Daniel Grunwald
9188a682e7
Add some steps to DelegateConstruction
6 years ago
Daniel Grunwald
f6aae1f97d
Fix #1386 : MoveArrayToPointerToPinnedRegionInit: Only consider the pinned variable uses within the PinnedRegion
...
This also makes CleanUpTryFinallyAroundPinnedRegion() redundant as it is no longer necessary to trigger the array-to-pointer transform; so the normal elimination of pinned variable resets is sufficient.
6 years ago
Daniel Grunwald
1ab11ba7ce
DetectPinnedRegions: also add debug step for failed CreatePinnedRegion() calls
6 years ago
Daniel Grunwald
bb3b50d1af
Allow recombining of captured variables.
6 years ago
Daniel Grunwald
da5693e605
Fix #1339 : fixed statement not decompiled correctly when pinned variable is reset in finally block
6 years ago
Siegfried Pammer
d9952a7e10
#1388 : Fix ArgumentOutOfRangeException in AsyncAwaitDecompiler.AnalyzeAwaitBlock.
6 years ago
Daniel Grunwald
47ca51a769
Clarify the meaning of ILVariable.Index
6 years ago
Siegfried Pammer
40bbb24675
CombineExitsTransform: Remove unnecessary checks, add both ILRanges to combinedLeave instruction.
6 years ago
Siegfried Pammer
d22e2ac677
Add header and comments describing transformation.
...
Add missing ILRanges.
6 years ago
Siegfried Pammer
deeb603fd7
Fix #1395 : do-while loop missing entry-point label.
6 years ago
Siegfried Pammer
ecde53969c
Add IsInConstructorInitializer case to ILInlining.OptionsForBlock.
6 years ago
Siegfried Pammer
99fc57c6be
CachedDelegateInitialization: Do not lose IL range by creating a new store instruction, reuse existing instruction instead.
6 years ago
Siegfried Pammer
238b5ac092
Fix CombineExitsTransform
6 years ago
Siegfried Pammer
17d19cd04a
Fix #1379 : Missing ILRange from yield return FSM.
7 years ago
Siegfried Pammer
3d5b300602
Improve TransformArrayInitializers: allow default entries at the end of a dimension > 0.
7 years ago
Siegfried Pammer
46b56f8482
Fix #1382 : Do not reuse index instructions in TransformArrayInitializers
7 years ago
Siegfried Pammer
37a8156dab
Fix #1383 : NRE in TransformArrayInitializers.
7 years ago
Siegfried Pammer
008a3c71e5
DelegateConstruction:
...
- add support for unknown delegate construction pattern. The method is compiler-generated, but has no compiler-generated name, we should be able to infer lambda usage from anonymous types used in the signature (i. e., the method can only be used as lambda, because that's where type names are optional).
- Add CombineExitsTransform in DelegateConstruction: this allows combining lambdas with multiple return statements into a single expression (as it is expected by query expressions).
7 years ago
Siegfried Pammer
859872ba8c
Fix #1377 : Fix IndexOutOfRangeException in TransformArrayInitializers
7 years ago
Siegfried Pammer
64686b9547
Fix #1336 : multi-dimensional array initializers with custom objects not detected.
7 years ago
Siegfried Pammer
3f4ffd64f8
Set DelayExceptions = true in ILReader for get/set operations on multi-dim arrays.
7 years ago
Siegfried Pammer
ab8c73b2f7
#1336 : Add limit in HandleSimpleArrayInitializer.
7 years ago
Daniel Grunwald
70138fa63d
#1336 : Use delayed exceptions for Array.Get/Set.
...
We use this flag for the ldelem/stelem representation, so we need to also use
it for Get/Set on multi-dimensional arrays.
7 years ago
Siegfried Pammer
dd2a2af31d
Extend UsingTransform.CheckResourceType to support non-generic System.Collections.IDictionaryEnumerator.
7 years ago
Siegfried Pammer
0c1134f5ed
Fix #1356 : ExpressionTrees: ref parameter usage not transformed correctly.
7 years ago
Siegfried Pammer
590558883e
Fix small regression in initializer tests.
7 years ago
Siegfried Pammer
cb5960b8e0
Fix #1355 : System.ArgumentException: An item with the same key has already been added in Decompiler.IL.Transforms.TransformExpressionTrees.ConvertLambda
7 years ago
Siegfried Pammer
875af13934
Fix #750 : Missing recognizer for ?? when rhs is an assignment expression
7 years ago
Siegfried Pammer
455d55dc46
Fix #1343 : Extend AwaitInCatchTransform to support catch blocks that leave the block container.
7 years ago
Siegfried Pammer
77c1dbab8a
Fix #1345 : Do not construct object initializer, if property or field in access path is not writable.
7 years ago
Siegfried Pammer
00a54a278a
Fix #1344 : Fix GetCodeMappingInfo for nested async FSMs
7 years ago
Daniel Grunwald
deb2ceebd8
Fix #970 : 'await' decompilation when the awaiter does not implement ICriticalNotifyCompletion
7 years ago
Siegfried Pammer
c34a36b3ec
Fix #1326 : Another case of missing ILRanges in
...
- TryFinally/TryFault instructions
- blocks, that are skipped when leaving nested containers
7 years ago
Siegfried Pammer
8740e2413d
Remove redundant namespace usage.
7 years ago
Siegfried Pammer
5b7e1b844f
Fix #1327 : BlockBuilder: ILRange was not set on last block of outer containers, if there were nested containers, such as try/finally.
7 years ago
Siegfried Pammer
667e04462a
Fix #1325 : Do not perform inline assignment transform on setter calls, that belong to parameterized properties.
7 years ago
Siegfried Pammer
091dc25a82
Fix #1340 : Update local function check to match latest version of Roslyn.
7 years ago
Siegfried Pammer
1854a33749
Fix #1340 : infinite recursion in DelegateConstruction due to recursive local function being mistreated as delegate construction.
7 years ago
Daniel Grunwald
b5ab8a4622
Fix #1338 : KeyNotFoundException in SwitchDetection.AnalyzeControlFlow()
7 years ago
Siegfried Pammer
b9f179465d
Fix part 1 of #1292 : switch on string inside try-block not recognized.
7 years ago
Siegfried Pammer
112719efaf
Extend safety-checks in TransformSpanTCtorContainingStackAlloc.
7 years ago
Siegfried Pammer
0dac55d584
Add transformation for stackalloc to Span<T>.
7 years ago