Daniel Grunwald
d917a3706b
Fix #2396 : Extend the #1903 workaround to unconstrained generic types.
The logic in the `FixLoneIsInst` transform already handled this correctly, it's just the check in the `isinst` translation that handled the `IsReferenceType == null` case incorrectly.
4 years ago
Daniel Grunwald
bd9aabeae2
Update to dotnet-format 5.1.225507.
This makes the formatting expected by our CI consistent with that generated by VS2019.9.
4 years ago
Daniel Grunwald
1292ff70d9
Fix #2391 : mark method as unsafe when passing `null` to a parameter of pointer type.
4 years ago
Daniel Grunwald
aae27900dc
Fix #2398 : TranslateCondition: truncate condition value if necessary
4 years ago
Daniel Grunwald
8d70d63dba
#2392 : Avoid some redundant casts with the `?:` operator.
4 years ago
Siegfried Pammer
635013329a
Fix #2358 : use current Path.DirectorySeparatorChar instead of hard-coded backslashes.
4 years ago
Siegfried Pammer
2a9a5237d1
Fix exception when trying to export project for which no target-framework moniker was detected.
4 years ago
Siegfried Pammer
2ed52b9634
#2362 : Provide more information on assembly resolve errors
4 years ago
Siegfried Pammer
7e913e056b
Exclude artificial ILInstructions from PDB generation
4 years ago
Siegfried Pammer
8fc64669c2
Add annotations on local function parameter declarations
4 years ago
Siegfried Pammer
5734da4294
Fix #2314 : ILSpy incorrectly resolves a runtime dependency when dll is present in both WindowsDesktop.App and NETCore.App
4 years ago
Siegfried Pammer
bf8166d045
Fix #2291 : block container end labels should be unique as well.
4 years ago
Siegfried Pammer
e6c351c43d
Do not use single-line formatting for auto properties/indexers if there are attributes.
4 years ago
Siegfried Pammer
280a94ce5d
Fix #1828 , Fix #2290 : Ensure base references have the correct type and are turned into this references and casted if necessary
4 years ago
Siegfried Pammer
3431881345
Fix #2307 : potential NRE in IntroduceExtensionMethods
4 years ago
Daniel Grunwald
51b3cf51c6
Fix #2305 : Cast to integer type where necessary in managed pointer arithmetic.
4 years ago
Daniel Grunwald
b4c5c0d212
Fix #2287 : Prefer `ref target.field[0]` over `ref *target.field`
5 years ago
Siegfried Pammer
afa4db00b6
Fix #2297 : Add an option to disable decompilation of getter-only auto properties.
5 years ago
Siegfried Pammer
f35074ebd8
Fix #2257 : Add global:: prefix, iff the containing namespace matches the type name.
5 years ago
Siegfried Pammer
34557ab76b
#2294 : Remove redundant condition
5 years ago
Daniel Grunwald
c95da67cbe
Fix extension method calls on `this in`.
5 years ago
Daniel Grunwald
3c554b5e6c
Fix overload resolution: overloads with `in` parameters are applicable even if the argument is passed without explicit `in`
5 years ago
Daniel Grunwald
514cf9b03b
Fix #1944 : Add support for implicit conversions with `in` parameters.
5 years ago
Daniel Grunwald
7ebfc5ded5
Fix #2294 : Issues discovered by static analysis.
5 years ago
Daniel Grunwald
c9be6bc389
Remove unused code ( #2294 )
5 years ago
Siegfried Pammer
fdda8abd74
Fix #2282 : Finalizers must be void and cannot be declared in interfaces
5 years ago
Siegfried Pammer
f29205448b
Fix #2283 : Disallow all implicit conversions in switch on string.
5 years ago
Siegfried Pammer
63ca748b9a
Fix #2283 : string.to.int instruction entails a conversion to string of the input value
5 years ago
Siegfried Pammer
669fe6417e
Fix #2280 : Add additional checks to GenerateVariableName
5 years ago
Siegfried Pammer
3d26536fff
Include checking for "this" when dealing with CSharpBinderFlags.InvokeSimpleName
5 years ago
Siegfried Pammer
f52ce79da0
Fix #2278 : Implement support for CSharpBinderFlags.InvokeSimpleName
5 years ago
Siegfried Pammer
b6ed312bdb
Fix tooltips of record classes and init accessors.
5 years ago
Siegfried Pammer
032bd5356a
Fix formatting
5 years ago
Siegfried Pammer
a5858f1694
Add support for primary constructor syntax.
5 years ago
Siegfried Pammer
6b6a794c3a
Fix #2267 : Use discard assignment with query expressions, if necessary.
5 years ago
Siegfried Pammer
2b16be76b6
Fix highlighting of identifiers declared in LINQ join clauses
5 years ago
Siegfried Pammer
b63da5d37d
Fix property formatting
5 years ago
Siegfried Pammer
cc19e9043e
Fix #603 : Single element arrays should not span multiple lines
Fix #1079 : CSharpFormattingOptions.AutoPropertyFormatting has no effect
5 years ago
Siegfried Pammer
69258806f6
Fix formatting
5 years ago
Siegfried Pammer
3df82cf33b
Add support for 'with' expressions
5 years ago
Daniel Grunwald
be9871981a
Records: Detect compiler-generated Equals() in derived records.
5 years ago
Daniel Grunwald
d9874380cd
Records: support generic records
5 years ago
Daniel Grunwald
0bf6d552e0
Records: support for fields.
5 years ago
Daniel Grunwald
a960216d5f
Add test case for simple records.
5 years ago
Daniel Grunwald
e02c4789f1
Records: detect copy constructor
5 years ago
Daniel Grunwald
c95f75d3bc
Records: detect whether GetHashCode is compiler-generated
5 years ago
Daniel Grunwald
648e7f9f87
Records: hide generated Equals() method
5 years ago
Daniel Grunwald
4fefd5f530
Records: detect when PrintMembers() is compiler-generated in derived records
5 years ago
Daniel Grunwald
500317a9e8
Records: detect when PrintMembers() is compiler-generated
Only for the simple case: record having only (auto-)properties but no fields and no inheritance.
5 years ago
Siegfried Pammer
cfaf6cc93f
Fix #2222 : switch-expression does not support implicit conversions.
5 years ago