Siegfried Pammer
7211587b45
Fix #2366 : NRE in AwaitInCatchTransform.MatchAwaitCatchHandler() and pattern errors when dealing with a switch-based jump table in AwaitInCatchTransform
4 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.
4 years ago
Siegfried Pammer
b6da9b23b1
Fix thread-safety issue in UniversalAssemblyResolver
4 years ago
Siegfried Pammer
d2fc380e0e
Fix #2349 : Use proper ExpressionType with DynamicCompoundAssign.
4 years ago
Siegfried Pammer
d60f158dfd
Fix #2342 : Do not generate empty names for foreach loop variables.
4 years ago
Siegfried Pammer
ba5d23a835
Fix #1512 : XmlDocumentationProvider Unable to load some XML files to have special characters
4 years ago
Siegfried Pammer
7e913e056b
Exclude artificial ILInstructions from PDB generation
4 years ago
Siegfried Pammer
8fc64669c2
Add annotations on local function parameter declarations
4 years ago
Siegfried Pammer
4ae41a855e
Fix #2321 : Missing readonly modifier for ref local
4 years ago
Siegfried Pammer
5a8b488e99
PDBGen: Fix exception in case an ILFunction gets defined in C# twice: This may happen if a compiler-generated function gets transformed into a lambda expression, but its method definition is not removed from the syntax tree.
4 years ago
Siegfried Pammer
51dcab484d
Add support for inline display of blob contents of CustomDebugInformation entries in PDBs.
4 years ago
Siegfried Pammer
5734da4294
Fix #2314 : ILSpy incorrectly resolves a runtime dependency when dll is present in both WindowsDesktop.App and NETCore.App
4 years ago
Siegfried Pammer
ae3306b966
Fix #2312 : Constructors and operators may not have any generic type parameters in C#
4 years ago
Siegfried Pammer
bf8166d045
Fix #2291 : block container end labels should be unique as well.
4 years ago
Siegfried Pammer
e6c351c43d
Do not use single-line formatting for auto properties/indexers if there are attributes.
4 years ago
Siegfried Pammer
280a94ce5d
Fix #1828 , Fix #2290 : Ensure base references have the correct type and are turned into this references and casted if necessary
4 years ago
Daniel Grunwald
a01c63dc62
Fix nullability warning: avoid NullReferenceException in the theoretical case where an unknown PrimitiveTypeCode is passed.
4 years ago
Daniel Grunwald
eec24ee6bb
Fix #2311 : Handle additional `comp` instruction in `IsNullSafeArrayToPointerNotNullBlock`
4 years ago
Matt Rouse
a8229dcfe1
C# decompiler doesn't support WinRT metadata ( #2308 )
...
Fix #2306 : Use GetRowNumber MetadataReader extension
Co-authored-by: Siegfried Pammer <siegfriedpammer@gmail.com>
Co-authored-by: Matt Rouse <matt.rouse@ensek.co.uk>
4 years ago
Siegfried Pammer
3431881345
Fix #2307 : potential NRE in IntroduceExtensionMethods
4 years ago
Daniel Grunwald
51b3cf51c6
Fix #2305 : Cast to integer type where necessary in managed pointer arithmetic.
4 years ago
Daniel Grunwald
b4c5c0d212
Fix #2287 : Prefer `ref target.field[0]` over `ref *target.field`
4 years ago
Siegfried Pammer
afa4db00b6
Fix #2297 : Add an option to disable decompilation of getter-only auto properties.
4 years ago
Daniel Grunwald
f726a0b73e
#nullable enable for typesystem and ILInstruction base class
4 years ago
Daniel Grunwald
281586de1f
`#enable nullable` for a couple of files.
...
Includes some fixes for potential NullReferenceExceptions.
4 years ago
Siegfried Pammer
f35074ebd8
Fix #2257 : Add global:: prefix, iff the containing namespace matches the type name.
4 years ago
Siegfried Pammer
34557ab76b
#2294 : Remove redundant condition
4 years ago
Siegfried Pammer
67be41a998
#2294 : Fix potential NRE: finalStore is accessed before null check.
4 years ago
Daniel Grunwald
d70bfe80d5
Add ResolveAsync() method to IAssemblyResolver interface.
...
DecompilerTypeSystem uses this to resolve/load multiple assemblies in parallel.
Unfortunately this doesn't gain us any performance yet in ILSpy because there we have a global assembly-loader-lock :(
4 years ago
Daniel Grunwald
899714d603
Remove unnecessary mutable state from UniversalAssemblyResolver.
4 years ago
Daniel Grunwald
2e1fdab869
#2286 : Enable server-mode GC in ILSpy
...
This results in significant performance improvements when decompiling a project/solution, cutting the run-time in half.
4 years ago
Daniel Grunwald
c95da67cbe
Fix extension method calls on `this in`.
4 years ago
Daniel Grunwald
3c554b5e6c
Fix overload resolution: overloads with `in` parameters are applicable even if the argument is passed without explicit `in`
4 years ago
Daniel Grunwald
514cf9b03b
Fix #1944 : Add support for implicit conversions with `in` parameters.
4 years ago
Daniel Grunwald
7ebfc5ded5
Fix #2294 : Issues discovered by static analysis.
4 years ago
Daniel Grunwald
c9be6bc389
Remove unused code ( #2294 )
4 years ago
Siegfried Pammer
899214c658
Fix escaping of strings in SecurityDeclaration output.
4 years ago
文煌
581a1de185
fix https://github.com/icsharpcode/ILSpy/issues/2288
4 years ago
Siegfried Pammer
e21f54b6cb
Remove spaces from TargetFrameworkAttribute value
4 years ago
Siegfried Pammer
fdda8abd74
Fix #2282 : Finalizers must be void and cannot be declared in interfaces
4 years ago
Siegfried Pammer
f29205448b
Fix #2283 : Disallow all implicit conversions in switch on string.
4 years ago
Siegfried Pammer
63ca748b9a
Fix #2283 : string.to.int instruction entails a conversion to string of the input value
4 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;
...
```
4 years ago
Siegfried Pammer
669fe6417e
Fix #2280 : Add additional checks to GenerateVariableName
4 years ago
Siegfried Pammer
3d26536fff
Include checking for "this" when dealing with CSharpBinderFlags.InvokeSimpleName
4 years ago
Siegfried Pammer
f52ce79da0
Fix #2278 : Implement support for CSharpBinderFlags.InvokeSimpleName
4 years ago
Siegfried Pammer
115ca210c7
Fix #2275 : Exception when assembly does not contain proper MetadataVersion.
4 years ago
Siegfried Pammer
66850e4725
Fix #2270 : I love deleting code that causes problems and no longer makes any sense at all!
4 years ago
Siegfried Pammer
b6ed312bdb
Fix tooltips of record classes and init accessors.
4 years ago
Siegfried Pammer
032bd5356a
Fix formatting
4 years ago