Daniel Grunwald
ffed8ea2c8
#nullable enable for AstNode
2021-06-05 18:48:41 +02:00
Siegfried Pammer
dc400fb700
Merge pull request #2408 from yyjdelete/issue2406
...
Fix #2406 : for readonly property with only getter, move readonly to property instead of getter
2021-05-22 12:24:58 +02:00
Siegfried Pammer
c90c0786b6
Do not add readonly modifier to accessors/properties/events if TSAB.ShowModifiers is false.
2021-05-22 11:03:02 +02:00
Daniel Grunwald
108c5f643e
Fix #2413 : Avoid global state in TokenRole.
...
We can already compactly store a `TokenRole` via the index+lookup in the `Role` base class.
The lookup in the base class is thread-safe; the one removed here was not.
2021-05-18 13:39:06 +02:00
SilverFox
65ea2e7af6
Fix #2406 : for readonly property with only getter, move readonly to property instead of getter
2021-05-11 11:14:35 +08:00
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.
2021-05-07 22:23:09 +02:00
Daniel Grunwald
8d70d63dba
#2392 : Avoid some redundant casts with the ?: operator.
2021-05-05 22:32:24 +02:00
Siegfried Pammer
f35074ebd8
Fix #2257 : Add global:: prefix, iff the containing namespace matches the type name.
2021-02-16 20:15:59 +01:00
Daniel Grunwald
c9be6bc389
Remove unused code ( #2294 )
2021-02-13 14:17:36 +01:00
Siegfried Pammer
a5858f1694
Add support for primary constructor syntax.
2021-01-10 19:13:01 +01:00
Siegfried Pammer
cc19e9043e
Fix #603 : Single element arrays should not span multiple lines
...
Fix #1079 : CSharpFormattingOptions.AutoPropertyFormatting has no effect
2021-01-06 01:19:31 +01:00
Siegfried Pammer
3df82cf33b
Add support for 'with' expressions
2021-01-03 20:55:25 +01:00
Daniel Grunwald
d9874380cd
Records: support generic records
2020-12-29 18:26:30 +01:00
Daniel Grunwald
da4539b15f
Records: Omit "IEquatable" in base class list
2020-11-09 21:51:01 +01:00
Daniel Grunwald
f869756fed
Use "record" instead of "class" for C# 9 record class types.
2020-11-09 21:29:13 +01:00
Daniel Grunwald
6010757d22
Add support for .NET 5 custom calling conventions.
2020-09-30 00:42:02 +02:00
Daniel Grunwald
6d3239678c
Function pointers: add support for the builtin unmanaged calling conventions.
2020-09-17 18:57:57 +02:00
Daniel Grunwald
d13a8bb64d
Support ldftn in the context of a function pointer.
2020-09-06 18:59:07 +02:00
Daniel Grunwald
3831b42197
Properly support calli instruction and its interaction with function pointer types.
2020-09-06 18:59:07 +02:00
Daniel Grunwald
cabb02b5fd
Add support for decoding function pointer types in signatures.
2020-09-06 18:59:06 +02:00
Siegfried Pammer
68af5c2dd7
#1796 : If TSAB.PrintIntegralValuesAsHex is set, do not use special constant fields.
2020-09-05 17:53:45 +02:00
dotnet format
0d9f871a4f
#2128 : Reformat the whole code base.
2020-08-28 01:05:38 +02:00
Siegfried Pammer
0c9ff4667c
Fix #1441 : Decompose flags enum values starting from the value with the highest Hamming Weight (popcount).
2020-08-27 14:04:32 +02:00
Siegfried Pammer
3bac7e1d4e
Fix #2124 : Unwrap nullables when printing constant values.
2020-08-25 11:26:50 +02:00
Siegfried Pammer
9e0e8d1cbc
Add basic support for C# 8.0 enhanced using statements.
2020-08-23 16:42:30 +02:00
Siegfried Pammer
562699fc94
Add support for C# 8.0 await foreach
2020-08-23 14:42:03 +02:00
Siegfried Pammer
c9f5e5dd33
Refactor ForeachStatement to support deconstruction
2020-08-16 20:35:53 +02:00
Siegfried Pammer
3080ca0768
Merge branch 'master' of https://github.com/icsharpcode/ILSpy into deconstruction-pattern-matching-foundation
2020-08-15 11:19:03 +02:00
Daniel Grunwald
abb9d49a0f
Add support for C# 8 switch expressions.
2020-08-02 11:57:33 +02:00
Daniel Grunwald
d388319cba
Add support for C# 9 init accessors.
2020-07-28 22:24:46 +02:00
Siegfried Pammer
18ace00266
Refactor LocalFunctionDeclarationStatement + LocalFunctionMethod
2020-07-25 21:07:56 +02:00
Siegfried Pammer
95f2ae7aef
Add ILAst base for Deconstruction and Pattern Matching
2020-07-18 18:38:54 +02:00
Siegfried Pammer
3dc75b9366
Add additional C# AST nodes used for deconstruction.
2020-07-18 18:37:41 +02:00
Daniel Grunwald
3a4db502bc
Add support for arithmetic using C# 9 native integer types.
2020-07-12 23:29:06 +02:00
Daniel Grunwald
2c9b84a1e1
If possible, use nint/nuint for conversions to/from IntPtr.
2020-07-12 03:06:55 +02:00
Daniel Grunwald
c9e41d0582
Add support for decoding NativeIntegerAttribute.
2020-07-12 02:05:34 +02:00
Daniel Grunwald
94a8190861
#2049 : Delete old NRefactory node types that were never supported for output.
2020-06-26 20:41:42 +02:00
Daniel Grunwald
2c0554f129
Fix #1963 : Support decompiling calli instructions into C# 9 function pointer syntax.
2020-06-24 02:28:28 +02:00
Siegfried Pammer
2e5a597300
Merge branch 'master' into ranges
2020-05-01 18:55:32 +02:00
Daniel Grunwald
c71802fd7b
Merge pull request #1920 from icsharpcode/fix-1919
...
Fix #1919 : Use unmapped IL offsets at the start of a catch-block for the 'exception specifier' sequence point.
2020-05-01 11:01:53 +02:00
Daniel Grunwald
4846feb640
Add support for C# 8 range syntax.
...
This initial commit only handles the trivial case where an Index or Range object is constructed.
The TODO portions of the test case show there are plenty of cases where where the C# compiler emits more complex code patterns that will require ILAst transforms.
2020-04-19 04:03:06 +02:00
Siegfried Pammer
d09190533a
Fix #1980 : IndexOutOfRangeException when choose IL with C# with System.Runtime.CompilerServices.Unsafe.Copy/InitBlock
2020-04-12 17:05:41 +02:00
Siegfried Pammer
e029266d40
Fix tokens used for catch-when clause.
2020-04-08 09:55:52 +02:00
Daniel Grunwald
3bf9f7c301
Fix #1943 : "ref readonly" returns from properties/indexers
2020-03-07 17:50:08 +01:00
Siegfried Pammer
df84ab8f6b
Fix #1882 : Provide a setting to desugar X? into Nullable<X> for value types
2020-02-27 20:43:44 +01:00
Daniel Grunwald
9e82b95373
Fix hexadecimal format of flags enum member initializers.
2020-02-14 23:48:26 +01:00
Daniel Grunwald
a7446cfddf
#1922 : Refactor PrimitiveExpression to store the literal format in the AST
2020-02-14 23:40:53 +01:00
Daniel Grunwald
8d780cc921
#1922 : Fix hexadecimal integer literals missing the uL suffix.
2020-02-14 23:12:29 +01:00
Siegfried Pammer
f08a721e6a
Merge pull request #1797 from yyjdelete/localFunc
...
Add support for generic and static local function
Fixes #1588
2019-12-19 17:58:23 +01:00
Siegfried Pammer
aef5fc1bce
Fix #1785 : Only use System.MathF, if it is available in the used framework.
2019-12-18 14:26:46 +01:00