Siegfried Pammer
343694c549
Generalize progress reporting for decompilation and PDB generation.
3 years ago
Andrew Crawley (US - DIAGNOSTICS)
a494bfadbe
Add progress reporting to PortablePdbWriter
...
This commit adds a new parameter to PortablePdbWriter.WritePdb that
allows the caller to provide an implementation of IProgress to receive
status updates on the pdb generation process. Currently, the progress
reports include the number of files generated so far and the total
number of files.
3 years ago
Siegfried Pammer
b87f3753e2
Fix #2786 : Structs with static reference type fields not recognized as unmanaged
3 years ago
Siegfried Pammer
47250d670b
Fix #2791 : Ensure that the capture scope used is either a loop or the ILFunction root container.
3 years ago
Siegfried Pammer
a3191f19e2
Fix #2763 : Improve decompilation of switch-on-enum by preserving enum type information when inlining local variables into SwitchInstruction.Value.
3 years ago
Siegfried Pammer
73144e4a29
Port ReflectionHelperTests from NRefactory.
3 years ago
Daniel Grunwald
0fbbb6d95e
Fix #2777 : StackOverflowException with recursive delegates
3 years ago
Siegfried Pammer
6139d9d58e
Delete created temp files if test execution was successful.
3 years ago
Christoph Wille
4777cb0450
Update NuGet packages
3 years ago
Siegfried Pammer
c5ff0cafc5
TransformInlineAssignmentStObjOrCall: Make sure no dead store is produced by the transform.
3 years ago
Siegfried Pammer
48a8351e27
Use Unsafe.SizeOf when taking the size of a managed type.
3 years ago
Siegfried Pammer
22e9791f86
Update RoslynToolset to 4.3.0-2.final
3 years ago
Daniel Grunwald
f02fc5c50e
VB marks lambdas as [SpecialName]
3 years ago
Daniel Grunwald
21c3ec046f
Output attributes on lambda expressions
3 years ago
Siegfried Pammer
f695bbcf3a
Add support for DefaultInterpolatedStringHandler
3 years ago
Siegfried Pammer
fbafc0289b
Fix #2741 : CallBuilder produces invalid invocation target when disambiguating calls to protected methods.
3 years ago
Siegfried Pammer
5078796b17
Add support for string format alignment.
3 years ago
Siegfried Pammer
7f0f72823b
Fix typo in CodeAssert
3 years ago
Siegfried Pammer
702a7da2c3
Fix #2714 : Force inlining of call targets in ctor initializers.
3 years ago
Siegfried Pammer
d248867302
Add support for C# 10 record structs.
3 years ago
Siegfried Pammer
7e08c348b5
#2685 : Emit 'override' without 'newslot' as 'virtual' if there is no (known) method to override.
3 years ago
Siegfried Pammer
1aa36a23f2
Use test-summary/action@v1 for test reports.
3 years ago
Siegfried Pammer
e61f46c474
Add MethodCodeType argument to MethodImplAttribute.
3 years ago
Siegfried Pammer
146fd72e4f
Do not add NETCORE preproc symbol if CompilerOptions.TargetNet40 is specified.
3 years ago
Andrew Crawley (US - DIAGNOSTICS)
071ca33561
Fix file locking issue in tests
3 years ago
Andrew Crawley (US - DIAGNOSTICS)
696cbc2136
Allow user to provide ID when generating a PDB
...
This commit adds a new parameter to PortablePdbWriter.WritePdb that
allows the caller to specify the exact Guid and timestamp that should be
used in the generated PDB. This will be useful for several scenarios
that are interesting for the Visual Studio debugger's integration:
1. Generating a PDB for an assembly that was built without debug info.
The PDB writer currently fails in this case, since the input assembly
has no debug directory from which to extract the relevant info. The
debugger can provide values that will allow us to load the generated
PDB.
2. Generating a PDB for an assembly that has multiple debug directories.
The PDB writer currently uses the first debug directory it finds, but
this isn't necessarily the correct one. The debugger can provide the
correct values.
3 years ago
James May
4a1f79a32a
Assume conventionally named unresolved method references are properties or events.
...
eg. decompiles to .Property instead of .get_Property()
3 years ago
Siegfried Pammer
6a3bb2bbf1
Fix #2655 : TranslateArrayInitializer crashes with out of order array init
3 years ago
Siegfried Pammer
68b388bc36
Disable DecompilerSettings.ParameterNullCheck
3 years ago
Siegfried Pammer
9e462b53ad
Add support for C# 11 parameter null checks
3 years ago
Siegfried Pammer
6a27959cbc
Improve decompilation of delegate references of extension methods.
3 years ago
Siegfried Pammer
0bc11d05d3
Fix #2634 : target expressions of delegate references were not decompiled correctly
3 years ago
Siegfried Pammer
006bc18a96
Run ComInterop test case only on .NET 4.0.
3 years ago
Zachary Northrup
0921d83e0d
Add testing of overloaded methods to COM V-table test
3 years ago
Zachary Northrup
abf36b0f43
Add a unit test validating that COM V-table ordering doesn't change with mixed properties, methods, and events
3 years ago
Siegfried Pammer
c9da59bec3
Ignore pragma warning directives in CodeAssert, as the decompiler never produces these.
3 years ago
Siegfried Pammer
de5b72114e
Fix nullable and other warnings.
3 years ago
Daniel Grunwald
a9f4694563
Add test for C# 11 generic attribute
3 years ago
Siegfried Pammer
9935f51b96
Fix #2646 : Missing values for enums with skipped or duplicate items
3 years ago
Daniel Grunwald
a8dc78a10a
Now that we build the tests for .NET 6, we can include the AsyncStreams tests in the .csproj (which gives better IDE integration when editing the tests)
3 years ago
Siegfried Pammer
e05b0dcbb0
#2657 : Use the same metadata reader (same options) in all cases.
3 years ago
Siegfried Pammer
4b475cfa69
Create ILSpyX project and make the following APIs reusable:
...
- AssemblyList, AssemblyListManager, AssemblyListSnapshot
- LoadedAssembly
- LoadedPackage and friends
- PDB providers
3 years ago
Siegfried Pammer
1ee3384a05
Fix #2640 : Invalid implicit enum value for unordered items
3 years ago
Siegfried Pammer
db034d3048
Remove incomplete/wrong support for null-forgiving operator.
3 years ago
Siegfried Pammer
3c2e52854e
DetectPinnedRegions: Inline the stack-slot involved in CustomRefPinPattern so that the following ProcessPinnedRegion call can reuse existing unmanaged pointer variables instead of being forced to create a new variable.
3 years ago
Siegfried Pammer
f98012ec16
DetectPinnedRegions: Support special case where pinned pointer is unused and the compiler optimized out the StopGCTracking-conversion.
3 years ago
Siegfried Pammer
44dee6ecc2
Add additional tests for .NET 4.0
3 years ago
Siegfried Pammer
e24b901cd1
Build self-contained test runners before running tests.
3 years ago
Siegfried Pammer
00edcad849
Use .NET 4.7.2 assemblies for our type system tests.
3 years ago
Siegfried Pammer
d85759f505
Force StackTests to use 32-bit runner
3 years ago