Siegfried Pammer
7593ebefd4
Fix #1982 : write attribute params arrays in expanded form
...
An attribute whose constructor ends in a params array was always printed with
the array spelled out, so omitting the optional arguments in the source turned
into a four-line `new string[] { }` in the output.
Expansion is not unconditional: an attribute may have another constructor that
the shorter argument list binds to instead, which would silently change which
constructor the recompiled attribute picks. Overload resolution over the
expanded argument list decides, and only a result that names the same
constructor in expanded form is written that way.
Assisted-by: Claude:claude-opus-5[1m]:Claude Code
1 month ago
Siegfried Pammer
c0b85c5dde
Add pretty test for generic attributes with constructed type arguments
...
Generic attributes were only closed over simple types; constructed
generic, array, and enum type arguments exercise separate paths in
the custom-attribute blob decoder.
Assisted-by: Claude:claude-fable-5:Claude Code
2 months ago
Peter Crabtree
e1e16b64f5
dev: Strip BOM mark from text files
1 year ago
Daniel Grunwald
4aa9280a8e
Add test case for generic attributes.
3 years ago
Daniel Grunwald
a9f4694563
Add test for C# 11 generic attribute
5 years ago
Siegfried Pammer
ec6a9afc57
Fix #2448 : Decompiler shows some enum values as hexdecimal instead of decimal
5 years ago
Siegfried Pammer
cc19e9043e
Fix #603 : Single element arrays should not span multiple lines
...
Fix #1079 : CSharpFormattingOptions.AutoPropertyFormatting has no effect
6 years ago
Siegfried Pammer
6f3230af48
Add ununsed CustomAttributes test.
...
Fix CalculatedGetterOnlyPropertyPattern for properties with attributes.
8 years ago
Daniel Grunwald
b149238777
Introduce IType.IsByRefLike.
8 years ago
Siegfried Pammer
bb38ae2fd8
Rearrange pretty tests, so that they work with Roslyn compilers as well.
8 years ago
Siegfried Pammer
8cbf724901
Move CustomAttributeTests to PrettyTestRunner
8 years ago
Siegfried Pammer
62770cf94c
Fix #1095 : C# decompilation, for flags enums always use hex prefix
9 years ago
Siegfried Pammer
eac591a7d7
Fix #1084 : Decompiling constants of the target type
9 years ago
Siegfried Pammer
16c900ebfa
Remove sequential values from enum members + display powers of two (- 1) as hex.
9 years ago
Daniel Grunwald
7e38d9c5aa
Fix #858 : parse local type arguments in reflection names.
9 years ago
Daniel Grunwald
c40ba690bc
Fix #856 : fix decompilation of attributes where null is passed to a parameter of type System.Type.
9 years ago
Siegfried Pammer
e26af08a1c
Move test projects to their own directory in \
9 years ago
Daniel Grunwald
f0a0ba8ac0
Fix some issues with missing casts for overload resolution and for boxing in attributes.
10 years ago
Daniel Grunwald
d6d86b35e2
Adjust test case
10 years ago
Daniel Grunwald
a6ae2e4b24
Fix #716 : OverflowException when converting System.Enum To System.Int64 in CustomAttribute
10 years ago
David Karlaš
a2667d93cc
Fixed CustomAttributesMultiTest to pass(removed attributes unrelated code in method+shortened attribute name)
11 years ago
David Karlaš
fca29f68c4
Reenabled CustomerAttributes unit tests and fixed most problems
11 years ago
Daniel Grunwald
02a500e762
ICSharpCode.Decompiler: Merge changes from SharpDevelop to ILSpy.
12 years ago
Daniel Grunwald
c4335dd2ef
Fix decompilation of arrays as attribute arguments. Closes #82 .
16 years ago
Daniel Grunwald
88160e9777
Decompile delegates into a delegate declaration instead of a type declaration.
16 years ago
Artur Zgodziski
f25904a474
changed TextRunner to accept test file name.
16 years ago
Artur Zgodziski
33290c2a7f
renamed files with sample code
16 years ago
Artur Zgodziski
19993ff43b
more attribute targets implemented.
16 years ago
Artur Zgodziski
d1fff3fdb1
testing code that helps running independent decompilation tests.
16 years ago