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
Siegfried Pammer
b100ddc077
Fix missing Space() in from clause
5 months ago
Siegfried Pammer
f987a6b041
Fix typo
5 months ago
Siegfried Pammer
faeae3f083
Fix #1682 , fix #1949 , fix #2394 and fix #3684 : Added basic algorithm of IsAccessorInterfaceImplementationRuntimeHelper
6 months ago
Siegfried Pammer
ade13f848e
Apply suggestions from Claude code review
6 months ago
nikitalita
7d88d43a92
Fix `in` erroneously being applied to `this`
6 months ago
Siegfried Pammer
98d764a169
Add a treenode and decompiler APIs for extensions.
6 months ago
Siegfried Pammer
77d9ee73e9
Fix IDE2000 globally
9 months ago
Siegfried Pammer
0cd53418ad
Add ILAmbience
9 months ago
Siegfried Pammer
1579a1698c
Fix #3612 : WholeProjectDecompiler.CleanUpName does not count bytes on Unix.
9 months ago
Siegfried Pammer
3a27cbef06
Fix #3617 : Order of XML comments in types with primary constructors
9 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
0ed123af07
#3621 : Fix NRE when switching language version to C# 8.0 or lower.
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
2bb06709e9
RecordDecompiler: nullable enable
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
mmusu3
88b2c437a7
Address PR review feedback
10 months ago
Siegfried Pammer
45efc732a7
#3614 : Use correct number of type arguments when adding type annotations to generic types with nested types.
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
Siegfried Pammer
7a5a2a00a9
#3452 : Transform field initializers in structs only if no record and no primary ctor.
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
sonyps5201314
b63b515a27
Exclude `System.Runtime.CompilerServices.RefSafetyRulesAttribute` from the `module` attribute in the generated `AssemblyInfo.cs`, because including it causes the compiler error: `error CS8335: Do not use 'System.Runtime.CompilerServices.RefSafetyRulesAttribute'. This is reserved for compiler usage.`. ( #3606 )
10 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
d11c40719d
#3569 : Don't move out variable declarations out of lambdas.
11 months ago
Siegfried Pammer
d736b02e2b
Fix #3480 : assert at ExpressionBuilder.BuildArrayInitializerExpression with properties that are not C# indexers, but parameterized properties.
11 months ago
Siegfried Pammer
b403b7bb3d
Fix #3542 : Invalid explicit cast for implicit conversion to generic struct with interface type constraint
11 months ago
ds5678
c54318173b
Fix lower case type name conflicting with variable name
12 months ago
Siegfried Pammer
732f285c41
Rename KnownAttributes.RequiredAttribute to KnownAttributes.Required
1 year ago
Siegfried Pammer
e34db06a67
Fix #3543 : Missing parentheses around field assignment expression in list initializers
1 year ago
Siegfried Pammer
48ff85178d
#3545 : Properties must have a getter for covariant returns to be applicable.
1 year ago
Siegfried Pammer
3442fad4a0
Fix #3545 : Covariant return not detected for abstract override property
1 year ago
Peter Crabtree
e1e16b64f5
dev: Strip BOM mark from text files
1 year ago
Daniel Grunwald
bd9ee28552
Fix #1789 : missing hyperlink for `MethodGroupResolveResult`.
1 year ago
Daniel Grunwald
ec58d57875
#3465 : Fix bugs in `comp.o` handling.
1 year ago
Daniel Grunwald
89083eaf48
Fix #3344 : Add support for the `ckfinite` opcode.
1 year ago
Daniel Grunwald
dd4bf7d8a4
Fix #3518 by replacing `FixLoneIsInst` with an inlining restriction.
...
This way we avoid having to extract later, as we will never inline if the `isinst` argument if this could result in it being unrepresentable in C#.
This commit also refactors inlining restrictions to avoid requiring special cases in ILInlining itself.
But when making this change, I discovered that this broke our pattern-matching tests, and that the weird IL with double `isinst` is indeed generated by the C# compiler for `if (genericParam is StringComparison.Ordinal)` style code. So instead we also allow `isinst` with a `box(expr-without-side-effects)` argument to be represented with the `expr is T ? (T)expr : null` emulation.
1 year ago
Jan Kučera
9d11f523b1
Always move initializer decompilation setting
1 year ago
Siegfried Pammer
6c00c138eb
Fix #3465 : Translate comp.o(a op b) if op not in (==, !=) into Unsafe.As<object, UIntPtr>(ref a) op Unsafe.As<object, UIntPtr>(ref b)
1 year ago
Maximilian Schmöcker
43bfaba7e0
Add ExpandParamsArguments DecompilerSettings
1 year ago
Maximilian Schmöcker
850ffe593d
Fix methods with mandatory arguments ignore disabled OptionalArguments setting
1 year ago
Siegfried Pammer
f8dcd95b31
Add support for extensions in CSharpDecompiler
1 year ago