Commit Graph
13 Commits
Author SHA1 Message Date
Siegfried Pammer 2ea569b005 Enable nullable reference types across the C# AST consumers
Turn on #nullable enable across the AST consumer layer: the output visitor, the
IL-to-C# builders (statement, call and expression builders, CSharpDecompiler,
TypeSystemAstBuilder), the translation-result wrappers, the sequence-point and
required-namespace collectors, and the annotation helpers. Optional inputs,
fields and returns are typed nullable, detector out-parameters use
[NotNullWhen(true)], and structurally-guaranteed dereferences use the
null-forgiving operator. A few public parameters that already tolerate null are
widened to match their downstream callers. The annotations emit no IL, so the
Pretty suite stays byte-identical.
Assisted-by: Claude:claude-opus-4-8:Claude Code
2026-06-23 07:43:42 +02:00
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.
2026-05-20 22:30:41 +02:00
Peter Crabtree e1e16b64f5 dev: Strip BOM mark from text files 2025-08-28 20:56:19 -04:00
Siegfried Pammer 29bd78a9c9 Add DecompilerSettings.ExtensionMembers and Language version 14 2025-08-04 08:53:33 +02:00
ds5678 586c04d081 Support params keyword on non-array collections 2025-07-04 19:08:07 +02:00
Siegfried Pammer 02d2a8c1f8 Add metadata processing for C# 12 'ref readonly' parameters 2024-07-19 18:40:08 +02:00
Daniel Grunwald a9f4694563 Add test for C# 11 generic attribute 2022-04-09 16:53:40 +02:00
Siegfried Pammer 30f9a82fbe Add Roslyn 3.11.0 as separate test configuration. Update RoslynLatest to 4.0.0. Use LanguageVersion.CSharp9_0 instead of Preview. Add LanguageVersion.CSharp10_0. 2021-11-09 00:39:18 +01:00
Daniel Grunwald 5a8cfc25ba Add some tests for native integers.
The conversion roundtrip tests are disabled due to https://github.com/dotnet/roslyn/issues/45929
2020-07-12 21:07:32 +02:00
Daniel Grunwald c9e41d0582 Add support for decoding NativeIntegerAttribute. 2020-07-12 02:05:34 +02:00
Daniel Grunwald 7a058f6262 First attempt at integrating C# nullable reference types into the type system. 2019-02-14 21:00:07 +01:00
Siegfried Pammer ceb4e3eed0 Add C# 7.3 to language version dropdown. 2018-05-12 11:29:46 +02:00
Daniel Grunwald 8a589b2fd2 Add DecompilerSettings constructor that takes a language version. 2018-03-04 17:05:37 +01:00