1775 Commits (e807f1ade2d9d4565c56f298d6d280ef2c2b2480)

Author SHA1 Message Date
Siegfried Pammer 94050a4aca Rewrite TransformFieldAndConstructorInitializers from a step-by-step AST-based analysis to an analysis that tracks the whole constructor body. 5 months ago
Siegfried Pammer 7a5a2a00a9 #3452: Transform field initializers in structs only if no record and no primary ctor. 5 months ago
Siegfried Pammer cb48768b6d Fix #3610: Add more primary constructor test cases. 5 months ago
Siegfried Pammer 46c99f1a21 Fix #3452: More bugs with primary constructors. 5 months ago
Siegfried Pammer 9c8d1e48d9 Many thanks to @sonyps5201314 for providing the test cases and a suggested fix, which inspired these changes. 5 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) 5 months ago
Siegfried Pammer f6c763e7bb Add tests for ExtensionEncodingV1 and ExtensionEncodingV2. 5 months ago
Siegfried Pammer 126e870a5a Fix #3577: Properly infer the switch governing type and preserve conversions 6 months ago
Siegfried Pammer c075f7b9c8 Fix out var for expressions appearing in a lambda and not in a statement. 6 months ago
Siegfried Pammer d11c40719d #3569: Don't move out variable declarations out of lambdas. 6 months ago
Siegfried Pammer d736b02e2b Fix #3480: assert at ExpressionBuilder.BuildArrayInitializerExpression with properties that are not C# indexers, but parameterized properties. 6 months ago
Siegfried Pammer b403b7bb3d Fix #3542: Invalid explicit cast for implicit conversion to generic struct with interface type constraint 6 months ago
ds5678 c54318173b Fix lower case type name conflicting with variable name 6 months ago
Siegfried Pammer 732f285c41 Rename KnownAttributes.RequiredAttribute to KnownAttributes.Required 7 months ago
Siegfried Pammer e34db06a67 Fix #3543: Missing parentheses around field assignment expression in list initializers 7 months ago
Siegfried Pammer 48ff85178d #3545: Properties must have a getter for covariant returns to be applicable. 7 months ago
Siegfried Pammer 3442fad4a0 Fix #3545: Covariant return not detected for abstract override property 7 months ago
Peter Crabtree e1e16b64f5 dev: Strip BOM mark from text files 7 months ago
Daniel Grunwald bd9ee28552 Fix #1789: missing hyperlink for `MethodGroupResolveResult`. 8 months ago
Daniel Grunwald ec58d57875 #3465: Fix bugs in `comp.o` handling. 8 months ago
Daniel Grunwald 89083eaf48 Fix #3344: Add support for the `ckfinite` opcode. 8 months ago
Daniel Grunwald dd4bf7d8a4 Fix #3518 by replacing `FixLoneIsInst` with an inlining restriction. 8 months ago
Jan Kučera 9d11f523b1 Always move initializer decompilation setting 8 months 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) 8 months ago
Maximilian Schmöcker 43bfaba7e0
Add ExpandParamsArguments DecompilerSettings 8 months ago
Maximilian Schmöcker 850ffe593d
Fix methods with mandatory arguments ignore disabled OptionalArguments setting 8 months ago
Siegfried Pammer f8dcd95b31 Add support for extensions in CSharpDecompiler 8 months ago
Siegfried Pammer 9157122462 Add ExtensionDeclaration syntax node 8 months ago
Siegfried Pammer 29bd78a9c9 Add DecompilerSettings.ExtensionMembers and Language version 14 8 months ago
Siegfried Pammer 68ae8ae833 Rename ITypeDefinition.HasExtensionMethods to ITypeDefinition.HasExtensions 8 months ago
Siegfried Pammer 7ea2c8f32f Remove dead code 8 months ago
Siegfried Pammer c642678f7f Remove ToTypeReference: Implement ParseReflectionName with SRM TypeName. 8 months ago
lordmilko 9498c8d3d9
Allow specifying an IDecompilerTypeSystem rather than a DecompilerTypeSystem to CSharpDecompiler 8 months ago
Siegfried Pammer 9dde97414a Rename ResolvedUsingScope to UsingScope 8 months ago
Siegfried Pammer c9e3790adc Remove UnresolvedUsingScope 8 months ago
Siegfried Pammer d2d9281072 Move CanTransformToExtensionMethodCall to CSharpResolver 8 months ago
Siegfried Pammer e56f12cf93 Fix #2165: DeclareVariables step must update ResolveResult annotation when using out var. 8 months ago
Siegfried Pammer 6955704172 Updated CSharpConversions according to https://github.com/dotnet/csharpstandard/blob/draft-v9/standard/conversions.md 8 months ago
Daniel Grunwald 235ae52756 Always attempt standard implicit conversions before user-defined conversions. 8 months ago
Siegfried Pammer ddb7171a2a Fix #3524: Property without backing field cannot have an initializer. 8 months ago
Jan Jones 2357d00939 Support `allows ref struct` constraint 8 months ago
Siegfried Pammer 49368caf1c Rename option to "UseObjectCreationOfGenericTypeParameter" 9 months ago
DoctorKrolic 47eeacd7aa Add an option to not transform `Activator.CreateInstance<T>()` to `new T()` 9 months ago
Siegfried Pammer d4a27b9b75 Fix net10.0-related bug in TargetServices.DetectTargetFramework 9 months ago
Siegfried Pammer fa4108e450 GetTargetFrameworkMoniker: add support for netX.Y for TFMs ".NETCoreApp, Version=5.0" or newer. 9 months ago
Siegfried Pammer 2fb90b49e0 Adjust string.Concat handling in ReplaceMethodCallsWithOperators to support unexpanded string.Concat calls. 9 months ago
Siegfried Pammer 18f5b0f2a0 Add minimal support for params collections to Overload Resolution. 9 months ago
Siegfried Pammer 4aa777ccc2 Add IsArrayInterfaceType extension method 9 months ago
Siegfried Pammer d9bc4d19a2 Add support for newobj ROS(in arg) to TransformParamsArgument. 9 months ago
Siegfried Pammer 27e4bc578b ref structs cannot be boxed 9 months ago