Siegfried Pammer
f267a7875e
Fix #855 - ArgumentOutOfRangeException in TransformCollectionAndObjectInitializers.DoTransform
8 years ago
Siegfried Pammer
d4d7e3ddf5
Fix #270 - Object initializer not detected when it contains lambdas;
...
Fixed by newdecompiler engine, adding unit test.
8 years ago
Siegfried Pammer
7ea511ef32
Add support for C# 6 dictionary initializer.
8 years ago
Siegfried Pammer
e26af08a1c
Move test projects to their own directory in \
8 years ago
Daniel Grunwald
2c762ee686
Remove pre-.NET 4.5 ifdefs
8 years ago
Siegfried Pammer
ef50a1114f
Fix another bug in TranslateObjectAndCollectionInitializer
8 years ago
Siegfried Pammer
e0437896be
TransformCollectionAndObjectInitializers: Support struct initializers, add more unit tests
8 years ago
Siegfried Pammer
7312654813
Rewrite of TransformCollectionAndObjectInitializers
8 years ago
Siegfried Pammer
f24f1e007e
Move correctness tests to single namespace
9 years ago
Siegfried Pammer
6c57304684
Reorganize TestRunner-Tests
9 years ago
Siegfried Pammer
6cefb0ae03
Adjust exit codes of remaining test cases (fixes build)
9 years ago
Siegfried Pammer
d3a36e528e
add TranslateArrayInitializer in ExpressionBuilder
10 years ago
Siegfried Pammer
bf990f8f41
add TransformArrayInitializers
10 years ago
Daniel Grunwald
0b968182a3
Fix #296 : Array initialization decompiles into recursive reference
13 years ago
Daniel Grunwald
7e35c705b6
Initial implementation of Expression Tree Decompilation ( #175 )
14 years ago
Pent Ploompuu
85fbaf8255
Test both with and without optimizations
14 years ago
Daniel Grunwald
3fad5cb76b
Fix #249 : Object Initializer not detected for value types
14 years ago
Alex Lyman
ed6380077f
- Reverted changes to display decimal.MinValue and decimal.MaxValue
...
- Altered InitializerTests to use constant literals instead of decimal.MinValue and decimal.MaxValue
14 years ago
Alex Lyman
e484d35fe2
- Altered the InitializerPeepholeTransforms' ArrayInitializer forward-scan to only look at the next instruction: in practice, CSC does not seem to generate code that needs anything more, and there are some questions as to the validity of the looping itself (i.e. what if there is a branch between them?
...
- Added another test to the InitializerTests, to validate that it handles deeper multi-dimensional arrays (I went 3x3x3 for simplicity)
14 years ago
Alex Lyman
9faee0ad8d
- Modified the InitializerPeepholeTransforms' Array Initializers to do a forward scan of the block instead of just checking the next instruction. The next-instruction thing breaks down under the case where you have an array-of-arrays (int[][])
...
- Added to the InitializerPeepholeTransforms' Array Initializers to detect the creation of a multi-dimensional array (int[,])
- Modified the ILCode.InitArray contract to take an ArrayType instead of just the element type, and passing with the ArrayType.Dimensions set accordingly.
- AstMethodBodyBuilder now used the ArrayType.Dimensions info to build a tree of ArrayInitializerExpressions from the raw, element-by-element list.
- Fixed OutputVisitor not calling StartNode for EmptyExpressions
Known issues:
- ArrayCreateExpression outputs extra space in the array specifier when using EmptyExpressions, ala: "new int[][, ]"
- The tree of ArrayInitializerExpressions outputs with blank lines before and after each block.
14 years ago
Alex Lyman
8dcea0b27b
- Made the InitializerTests pass, through three changes:
...
* Added new-lines as needed to make the source formatting match what the actual output was.
* Added code to CodeAssert to make it ignore #regions
* Added code to output decimal.MinValue and decimal.MaxValue as appropriate
14 years ago
Daniel Grunwald
e0c7bebfe8
Add license headers to the files that were missing them.
14 years ago
Daniel Grunwald
207bb984aa
Implemented support for nested object/collection initializers.
14 years ago
Daniel Grunwald
600c07388e
Implemented object initializers.
14 years ago
Daniel Grunwald
9ad5124603
Fixed type analysis for collection initializers. Closes #104 .
14 years ago
Daniel Grunwald
b6d832d212
Add support for collection initializers.
14 years ago
Daniel Grunwald
72ee5d309c
Improve array initializer support.
14 years ago
Daniel Grunwald
7de3cf9bc4
Add support for array initializers.
14 years ago