Siegfried Pammer
f801059659
TDCU: make sure that copies of display-class variables are validated as well.
4 years ago
Siegfried Pammer
d8bb40b45b
Generate file-scoped namespace declarations, if possible.
4 years ago
Daniel Grunwald
8c508d9bbb
#2445 : Fix `1f/6f` getting printed as `355f / (678f * (float)Math.PI)`
...
Also fix inconsistent float comparisons due to JIT optimizations.
4 years ago
Daniel Grunwald
7f985757a7
Fix #2541 : Add explicit `unchecked()` around non-constant cast of constant to `nint`
4 years ago
Daniel Grunwald
17d323c943
Fix #2557 : Remove incorrect assertion from `ReduceNestingTransform`
...
ILFunctions can appear as statements when the source code has a lambda expression which is immediately discarded.
```
_ = (Action)delegate { ... };
```
4 years ago
Siegfried Pammer
a655e35799
Fix ArgumentNullException in IntroduceUsingDeclarations: ignore unnamed variables for the purpose of conflict resolving.
4 years ago
Siegfried Pammer
35aea3eea7
Slight pattern changes in mcs 5 switch-on-string with case null.
4 years ago
Siegfried Pammer
1826ac031d
#2539 : Add support for yield state machine pattern used by mcs 5.x
4 years ago
Siegfried Pammer
77ceb15e31
Fix build.
4 years ago
Siegfried Pammer
8f6ee052be
Fix #2469 : Add special case for mscorlib and netstandard.dll to DetectTargetFrameworkId
4 years ago
Daniel Grunwald
df339e72fb
Fix DetectPinnedRegions.SplitBlocksAtWritesToPinnedLocals creating blocks without ILRange.
...
These blocks could trigger assertions if LoopDetection was creating a loop BlockContainer from them (BlockContainers have an assertion requiring an ILRange).
Closes #2533 and #2457 .
4 years ago
Daniel Grunwald
583771e012
#2533 : Fix bug in CreatePinnedRegion that could cause pinned regions to be created with the wrong entry point if the original IL had blocks in an unusual order
4 years ago
Daniel Grunwald
e321fe5f4f
Fix compiler warning
4 years ago
Siegfried Pammer
210601fcfa
Fix #2495 : VB.NET decimal constants are not supported
4 years ago
Siegfried Pammer
ea1cea96c4
Fix #2547 : decimal const not removed from static constructor.
4 years ago
Siegfried Pammer
4b6fd7aee6
Fix #2545 : LINQ expression has a question operator on the source collection
4 years ago
Siegfried Pammer
65f2c54166
Fix #2544 : do not transform to interpolated string, if the format string is not syntactically correct.
4 years ago
Siegfried Pammer
30f9a82fbe
Add Roslyn 3.11.0 as separate test configuration. Update RoslynLatest to 4.0.0. Use LanguageVersion.CSharp9_0 instead of Preview. Add LanguageVersion.CSharp10_0.
4 years ago
Siegfried Pammer
6bc0abc336
Fix #2378 : DeconstructionTransform produced invalid ILAst with some optimized deconstruction patterns.
4 years ago
Siegfried Pammer
22c98016a9
Fix #2530 : ArgumentOutOfRangeException in PatternMatchRefTypes
4 years ago
Siegfried Pammer
ee3aabdc51
Fix #2534 : Handle default implementations of properties and events in interfaces.
4 years ago
Siegfried Pammer
0ed191617e
Fix #2528 : arbitrary stores preceding switch-on-string confuse the transform, making it pick the wrong variable as switch variable.
4 years ago
Siegfried Pammer
15d74751f4
Fix #2459 , fix #2460 : Make sure that LdObjToLdLoc and StObjToStLoc preserve the result type, if the source variable has an unknown type.
4 years ago
Siegfried Pammer
936388ba18
Fix #2458 : ILExtraction.Extract handles BlockContainer.Kind != Normal.
4 years ago
Siegfried Pammer
e1ca4db851
Fix #2527 : Support skip locals init
4 years ago
Siegfried Pammer
1e4d8b6f44
Add DecompilerTypeSystem.CreateAsync to allow asynchronous initialization.
4 years ago
Christoph Wille
ff739c4cac
Add header
4 years ago
Christoph Wille
c68bf60b1b
Wrap DoDecompileEvent(IMethod...)
4 years ago
Christoph Wille
6e5c474dfc
Instrument more DoDecompile methods
4 years ago
Christoph Wille
1b3a73d9e9
Add ETW for event + property decompilation as PoC
4 years ago
Siegfried Pammer
6f032e267e
Fix #2515 : Auto events are not decompiled correctly, if left untouched.
4 years ago
Siegfried Pammer
96db0a5472
Add support for pattern matching in UsingTransform.
4 years ago
Siegfried Pammer
665c731cfc
Move PatternMatchingTransform after LoopDetection.
4 years ago
Siegfried Pammer
55f1125f94
Ensure that pattern locals get distinct variable names.
4 years ago
Siegfried Pammer
9d99ee86db
Fix #2503 : Move correct branch in the case of swapped jump-table conditions.
4 years ago
SilverFox
1367e7ba95
Add support for `in parameters` in primary ctor of records
4 years ago
SilverFox
11b44e53b7
Add support for attributes of field/property in primary ctor of records
4 years ago
SilverFox
58bed656cd
Fix records support for Roslyn 4.0.0-3.final
4 years ago
Siegfried Pammer
6cc89378aa
Remove unused code.
4 years ago
Siegfried Pammer
6628e0a410
Fix #2500 : NRE and other bugs when hovering over symbol with <inheritdoc />.
4 years ago
Siegfried Pammer
47dcf0507f
#2500 : nullable enable XmlDocumentationElement
4 years ago
Siegfried Pammer
1568aeca3e
Fix #2506 : NamedArgumentTransform loses information, if the original variable is of StackType.Ref
4 years ago
Daniel Grunwald
9a053d5e6c
nullable enable for CSharpOperators.cs
4 years ago
Siegfried Pammer
19d5ea4095
Fix #2505 : Do treat whole resource name as file name without directory at the start of GetFileNameForResource.
4 years ago
Siegfried Pammer
07199e2ecf
Fix #2038 : Add proper support for Long paths on Windows 10 and limit path segments to 255 characters (with long path support) or 30 characters. If a PathTooLongException is thrown display a better error message on project export.
4 years ago
Siegfried Pammer
dbbcbb87fe
Make pattern matching transform a simple ILTransform for both reference and value types. Check that the true branch dominates all uses of the pattern variable.
4 years ago
Siegfried Pammer
ed82bff896
Fix #2497 : NRE in covariant returns check on set-only property
4 years ago
Siegfried Pammer
e50d221e06
Adjust NullableLiftingTransform to match new patterns due to RemoveInfeasiblePathTransform.
4 years ago
Siegfried Pammer
900d0a4b93
Fix #1966 : Add option to show raw offsets and instruction bytes in IL view.
4 years ago
Siegfried Pammer
48adb52489
Show header size in IL output.
4 years ago