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
fa9351c89f
Fix #2295 : Don't attempt to decompile bundle; instead show info from bundle header.
4 years ago
Daniel Grunwald
a7c2869397
Fix exception when trying to resolve references within a bundle.
4 years ago
Daniel Grunwald
7c9f1dc8ef
#2295 : Avoid using `GetPEFileOrNull` if we can't actually handle a `null` return value
...
This improves the exception message shown when trying to disassemble a .nupkg as IL.
4 years ago
Daniel Grunwald
2f14cde050
#2295 : Handle BadImageFormatException in LoadAssembly.
...
When nuget packages are <40 KB, SRM seems to throw `BadImageFormatException` instead of `PEFileNotSupportedException`.
4 years ago
Daniel Grunwald
0c23ab1998
Merge pull request #2301 from icsharpcode/async-resolve
...
async IAssemblyResolver
4 years ago
Siegfried Pammer
501d418f25
Merge pull request #2289 from wwh1004/fix4
...
Fix wrong nullable lift
4 years ago
Siegfried Pammer
3b2f00e44f
Add test case.
4 years ago
Siegfried Pammer
fff2d0a787
Fix assertions on AssemblyList.Sort and AssemblyList.Unload. Fix hang on LoadDependencies.Execute.
4 years ago
Christoph Wille
2364aeb28f
Enable serverGc in ilspycmd, see #2286
4 years ago
Daniel Grunwald
263d9b9e07
Simplify the assembly-resolving implementation.
...
* We no longer maintain the weird `loadingAssemblies` global state.
* AssemblyList now internally handles multiple concurrent load requests for the same filename.
* AssemblyList.assemblies and its lock is now private to the AssemblyList.
* Removed a questionable caching layer (cache was per-AssemblyList, but was caching the result of a per-LoadedAssembly lookup function.
* Replaced static DisableAssemblyLoad() with bool-parameter on GetAssemblyResolver() call.
4 years ago
Daniel Grunwald
3664e36e3e
Fix GetAssemblyReferenceClassifier() not initializing the universalResolver.
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
Siegfried Pammer
4d3040cdff
Merge pull request #2279 from cshung/public/fix-debug-info-decoration
...
Fix some bugs in debug info decoration for ReadyToRun
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
Andrew Au
2c03e0744b
Update ReadyToRunLanguage.cs
4 years ago
Andrew Au
2c44b7fb90
Fix some bugs in debug info decoration for ReadyToRun
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
0440ffdc06
Merge pull request #2276 from AustinWise/austin/VisualStyles
...
Enable theming for message boxes
4 years ago
Austin Wise
12485a87ca
Enable theming for message boxes
4 years ago
Siegfried Pammer
115ca210c7
Fix #2275 : Exception when assembly does not contain proper MetadataVersion.
4 years ago
Siegfried Pammer
5f6e63548c
Print info whether a Debug Directory Entry of type "reproducible" is in the assembly.
4 years ago
Christoph Wille
08de8416f5
The attribute "embeddedSourceLength" doesn't seem to be part of XML element any more
4 years ago
Christoph Wille
619763c830
Use one common version of DSR.Converter.Xml
4 years ago
Christoph Wille
4307125df1
Fix #2273 : The feed for Microsoft.DiaSymReader.Converter.Xml (a DEBUG dependency of ILSpy.csproj) has moved to Azure DevOps (via https://github.com/dotnet/symreader-converter ). New version picked (121K downloads) https://dev.azure.com/dnceng/public/_packaging?_a=package&feed=dotnet-tools&package=Microsoft.DiaSymReader.Converter.Xml&protocolType=NuGet&version=1.1.0-beta2-20115-01&view=versions because old version not available
4 years ago
Christoph Wille
ecd1fb294c
Frontends for v7p2
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
c4930a81b5
Skip folds that only span a single line
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
Siegfried Pammer
a5858f1694
Add support for primary constructor syntax.
4 years ago
Siegfried Pammer
288c6a75e7
Use ToLower instead of ToLowerInvariant.
4 years ago
Siegfried Pammer
dd84f17ea1
#2263 : Fix IsLowerCase to take script without upper/lower case distinction into account.
4 years ago
Siegfried Pammer
06bae54b91
Fix #2263 : Add lower-case type and member names to the list of existing names, to prevent collisions.
4 years ago