Siegfried Pammer
82edef3bc6
Add scaffolding for the C# 15 runtime-async lowering.
...
Detect MethodImplOptions.Async (0x2000) in ILReader and unpack Task/Task<T>
return types so the IL Leave value and function.AsyncReturnType match the
source signature. Add CSharp15_0 (Preview also bumped to 1500) and a
RuntimeAsync setting (default on, gated to >=CSharp15_0), expose it in the
Languages dropdown, mask the synthetic MethodImplAsync bit out of the
decompiled [MethodImpl], and add a .runtimeasync test suffix.
4 months ago
Siegfried Pammer
cf23d76a5e
Add tests
4 months ago
Christoph Wille
5833ee57a4
Updates for .NET Preview 4
4 months ago
Christoph Wille
23494ae1a2
Packages for .NET 11 Preview 3
5 months ago
Siegfried Pammer
9e984a95ff
Remove IL file from ugly tests
5 months ago
Siegfried Pammer
7a8a978963
Add CompilerOptions.UseRoslyn4_14_0
5 months ago
Christoph Wille
5e05d60bcc
Fix evaluation of Roslyn version in Tester
5 months ago
Christoph Wille
6f1c2b6cc9
.NET 11 for Tests ( #3695 )
...
* .NET 11 RC2 minimal changes
* Heuristic for transport feed Roslyn selection
* Microsoft.CodeAnalysis.NetAnalyzers from main NuGet feed
* Use the VS2026 image
* Switch all test projects to net11
* Extract constants
* Include vsix with plain nuget.config files
5 months ago
Siegfried Pammer
79b0cbb719
Fix #3703 : Do not transform to a primary constructor if it's not public (or protected in abstract classes)
5 months ago
Christoph Wille
a467610928
Update Microsoft.NETCore.App.Ref version to 10.0.0
6 months ago
Siegfried Pammer
f6b31448db
Add test cases
6 months ago
Siegfried Pammer
faeae3f083
Fix #1682 , fix #1949 , fix #2394 and fix #3684 : Added basic algorithm of IsAccessorInterfaceImplementationRuntimeHelper
6 months ago
Siegfried Pammer
a03f801cb7
Add failing test and test infrastructure adjustments to allow compiling referenced assemblies in one go.
6 months ago
Siegfried Pammer
ade13f848e
Apply suggestions from Claude code review
6 months ago
Christoph Wille
1594a57929
Use AwesomeAssertions 9.4.0
6 months ago
Christoph Wille
06ff9a6a6a
Switch to (finally) released coverlet.MTP ( #3675 )
6 months ago
nikitalita
7d88d43a92
Fix `in` erroneously being applied to `this`
6 months ago
Siegfried Pammer
d96c5a0457
Remove use sites from tests for now
6 months ago
Siegfried Pammer
98d764a169
Add a treenode and decompiler APIs for extensions.
6 months ago
Siegfried Pammer
35c88b048f
Rename test case to "ExtensionEverything"
6 months ago
Siegfried Pammer
77d9ee73e9
Fix IDE2000 globally
9 months ago
Siegfried Pammer
d3e12d0ebf
Migrate from .ruleset to .editorconfig
9 months ago
Siegfried Pammer
5f0e767c7d
Fix crash in TryEncodingV2, if there are multiple extension groups with the same target type, but different extension parameter name.
9 months ago
Siegfried Pammer
0cd53418ad
Add ILAmbience
9 months ago
Siegfried Pammer
17016c7beb
Fix #3611 : Update test cases to reflect original test
9 months ago
Siegfried Pammer
c0a9afc4ad
Fix #3616 : local variable naming conflict with primary constructor parameters.
9 months ago
Siegfried Pammer
1e4c9b3009
Fix misplaced noWarn.Add
10 months ago
Siegfried Pammer
e42ee2428f
Remove warnings in test cases.
10 months ago
ds5678
83df0ab9b9
Handle multiple calling conventions at once
10 months ago
ds5678
a04c0e4cab
Improve decompilation of unmanaged function pointers
...
This improves how function pointers are decompiled.
* ExpressionBuilder::VisitLdFtn now properly constructs the calling conventions.
* FunctionPointerType::FromSignature now checks whether a modopt type affects the calling convention.
10 months ago
Siegfried Pammer
d70a5e7fb2
Fix #3626 : Do not emit named arguments for bool constants, if it causes the call to become ambiguous.
10 months ago
Siegfried Pammer
3fd9981535
Fix #3621 : Fix multiple uses of primary ctor parameter in initializer of record.
10 months ago
Siegfried Pammer
c34cc100b6
Records: Exclude static members from copy constructor check
10 months ago
Siegfried Pammer
2271229b23
Fix #3618 : Extend validation of declared members and ctor parameters
10 months ago
Siegfried Pammer
396b58031b
Add support for C# 14 first-class span types in the type system.
10 months ago
Siegfried Pammer
2f8f753a8c
Allow nullable annotations in ExtensionProperties test case
10 months ago
mmusu3
22ceb6e7d1
Fix remaining cases with changes to IntroduceUsingDeclarations.
10 months ago
Siegfried Pammer
94050a4aca
Rewrite TransformFieldAndConstructorInitializers from a step-by-step AST-based analysis to an analysis that tracks the whole constructor body.
10 months ago
ds5678
ad4a87b9a3
Improve inlining of boxed values
10 months ago
Siegfried Pammer
cb48768b6d
Fix #3610 : Add more primary constructor test cases.
10 months ago
Siegfried Pammer
46c99f1a21
Fix #3452 : More bugs with primary constructors.
10 months ago
Siegfried Pammer
9c8d1e48d9
Many thanks to @sonyps5201314 for providing the test cases and a suggested fix, which inspired these changes.
...
Various improvements regarding primary constructor decompilation, including:
- introduce `HasPrimaryConstructor` property in the AST, as there is a difference between no primary constructor and a parameterless primary constructor
- improved support for inherited records and forwarded ctor calls
- exclude non-public fields and properties in IsPrintedMember
- introduce an option to always make the decompiler emit primary constructors, when possible
10 months ago
Siegfried Pammer
588c243929
#3593 : ObjectInitializers: allow castclass instructions wrapping the init instruction to support the pattern used for covariant returns on non-supporting platforms such as .NET 4.x.
11 months ago
Siegfried Pammer
f6c763e7bb
Add tests for ExtensionEncodingV1 and ExtensionEncodingV2.
11 months ago
Siegfried Pammer
126e870a5a
Fix #3577 : Properly infer the switch governing type and preserve conversions
11 months ago
Siegfried Pammer
c075f7b9c8
Fix out var for expressions appearing in a lambda and not in a statement.
11 months ago
Siegfried Pammer
b403b7bb3d
Fix #3542 : Invalid explicit cast for implicit conversion to generic struct with interface type constraint
11 months ago
Daniel Grunwald
d13835e2cc
Add test for "params scoped Span'.
11 months ago
ds5678
dc3ed43dd8
Do not create object initializers for tuples
12 months ago
Siegfried Pammer
7b03606402
Fix #3575 : Uses of compiler-generated events getting swapped with non-generated events of same type
12 months ago