Daniel Grunwald
81bb822fdb
Adjust ILSpy to NRefactory changes.
14 years ago
Daniel Grunwald
fc58b40400
Fixed decompilation of WinRT classes (methods implementing interfaces were misdetected as explicit interface implementations)
14 years ago
Pent Ploompuu
41e71ead8c
Fix variable splitting for ldloca opcodes
14 years ago
Daniel Grunwald
eba7aa2ca2
Normalize line endings to LF.
14 years ago
Daniel Grunwald
0cdaf3bec4
Ensure the value parameter of a property setter is called 'value'.
14 years ago
Pent Ploompuu
fad596bc4b
Fix type casting regression by improving type analysis of ILCode.Box
14 years ago
Pent Ploompuu
92c892577d
Use consistent terminology for lifted operators
14 years ago
Pent Ploompuu
7c3fd3afda
Use annotations to mark lifted operators that can't be transformed by PushNegation
14 years ago
jbevain
96c7204789
Annotate VariableInitializers with ILVariable when possible
14 years ago
Daniel Grunwald
5463a70fe4
Decompile [ComImport] attribute.
14 years ago
Daniel Grunwald
baa4af92c1
Don't use field initializer syntax when the RHS of the assignment contains "this".
14 years ago
jbevain
d55a61772a
Annotate properties and events with the original method reference too
14 years ago
Daniel Grunwald
f39f7c3d63
Use 'ref', not 'out', for passing arguments to a method parameter declared as "[In, Out] ref".
14 years ago
Pent Ploompuu
66fde6d0ee
Compound assignment support for overloaded operators
14 years ago
Pent Ploompuu
ee0f43ad38
Compound assignment support for lifted operators
14 years ago
Pent Ploompuu
0e993afe58
Add an annotation to redundant ParenthesizedExpressions for PushNegation transform
14 years ago
Eusebiu Marcu
b394749f47
create a new TextOutputLocation class for storing the location in the output text instead of Tuple<int, int>
14 years ago
Pent Ploompuu
0e20029579
Fix ICSharpCode.Decompiler.csproj line endings (CRLF is used upstream now)...
14 years ago
Daniel Grunwald
0c9faf13f5
Fix GetPopDelta() for calli instructions that call instance methods.
14 years ago
David Srbecký
aeeda32d10
Return instruction pops zero or one item instead of all.
...
Exception of catch block does not have to be consumed.
Related to #185
14 years ago
David Srbecký
3b692d9c7c
Ignore arguments of 'leave'. Closes #185
14 years ago
Siegfried Pammer
3e009aaa1b
add folding
14 years ago
Siegfried Pammer
f4d29b2f2b
add AlwaysGenerateExceptionVariableForCatchBlocks setting to avoid Catch clauses without a variable; disable C#'s query expression translation
14 years ago
Siegfried Pammer
beff26761e
fix #167 - Incorrect decompilation of null as extension method this parameter
14 years ago
Eusebiu Marcu
85b8f848c3
Add Decompilation data class to be used by other applications to store code mappings information.
14 years ago
Siegfried Pammer
4c4374cc8c
add IntroduceIncrementAndDecrement setting for VB
14 years ago
Pent Ploompuu
26d903efd5
Test case for operator "is" on reference types with result used as a boolean.
14 years ago
Pent Ploompuu
3d7d36f360
Fixed "is" operator regression caused by SimplifyLogicNot
14 years ago
Pent Ploompuu
85fbaf8255
Test both with and without optimizations
14 years ago
Pent Ploompuu
e5c8b06e1c
Fixed TernaryOp and NullCoalescing type analysis.
14 years ago
Pent Ploompuu
26734a68d3
Test cases for all lifted operators
14 years ago
Daniel Grunwald
17a75ded4e
Fix #211 InvalidCastException in ILAstOptimizer.TransformArrayInitializers
14 years ago
Daniel Grunwald
3fad5cb76b
Fix #249 : Object Initializer not detected for value types
14 years ago
Pent Ploompuu
1388f0b678
Fix performance regression in stack analysis (probably caused by increased complexity from Ldloca support).
14 years ago
Pent Ploompuu
1430500eba
PDB files for release mode. File alignments and base addresses improved.
14 years ago
Daniel Grunwald
5c2f3633a0
Don't use variable name from .pdb file if it isn't a valid C# identifier.
14 years ago
Pent Ploompuu
587c36bea2
Type analysis support for the remaining lifted operators
14 years ago
Pent Ploompuu
458571f750
Fix op_ExclusiveOr AST transform
14 years ago
David Srbecký
822e473df3
Replace endfinally with jump. Closes #232
14 years ago
Pent Ploompuu
d226afb26d
Decompile all lifted operators on nullable values. Postfix increment/decrement and custom type conversions support incomplete, but correct.
14 years ago
Daniel Grunwald
3020bc9ce8
Fixed type analysis for right shift operator.
14 years ago
Daniel Grunwald
43b4339bea
Simplify shift operators (<< and >>).
...
Based on patch by Pent Ploompuu.
14 years ago
Siegfried Pammer
2a45819408
implement ArrayCreateExpression and CastExpression
14 years ago
Daniel Grunwald
b9109469af
Fixed bug that could cause variable names to be used twice, resulting in a crash in DeclareVariable step. Closes #222 .
14 years ago
Daniel Grunwald
8beed6aa70
Fixed type inference for shift operators. Closes #239 .
14 years ago
Daniel Grunwald
2783b02007
Fix #241 : type analysis causes truncation of integer literals when calculating with types smaller than int32.
14 years ago
Daniel Grunwald
6c94092dc5
Fixed ILAstOptimizer.CanBeExpressionStatement to include more types of assignments.
...
Fixed TypeAnalysis.IsEnum so that arrays of enums are not considered to be enums.
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