Daniel Grunwald
9db07b54c5
Adjust decompiler to NRefactory changes.
14 years ago
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
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
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
Eusebiu Marcu
b394749f47
create a new TextOutputLocation class for storing the location in the output text instead of Tuple<int, int>
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
Siegfried Pammer
4c4374cc8c
add IntroduceIncrementAndDecrement setting for VB
14 years ago
Daniel Grunwald
3fad5cb76b
Fix #249 : Object Initializer not detected for value types
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
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
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
Daniel Grunwald
fde6361995
Fixed missing XML documentation on enum members.
14 years ago
Artur Zgodziński
c42bf520b8
Highlighting references to clicked variable or parameter.
14 years ago
Daniel Grunwald
4f5fb6c140
Fixed references to enum values nested within generic types.
14 years ago
Daniel Grunwald
9376ece056
Fixed references to enum values nested within generic types.
14 years ago
Daniel Grunwald
c339b9270a
Fix crash in disassembler and decompiler when HasPInvokeInfo=true but PInvokeInfo=null (occurs with unmanaged methods in C++/CLI assemblies)
14 years ago
Daniel Grunwald
e8b6e3d808
Annotate anonymous methods/lambdas with the MethodDefinition representing the lambda body.
14 years ago
Daniel Grunwald
e0c7bebfe8
Add license headers to the files that were missing them.
14 years ago
Siegfried Pammer
111a6ca292
do not use primitive type names in TreeNodes; fixes #183
14 years ago
Siegfried Pammer
f86fa5d1dd
implement support for op_True and extend unit test
14 years ago
Daniel Grunwald
229218174f
Inlining: remove the arg_-Variable in catch blocks.
14 years ago
Daniel Grunwald
7d24f683d1
Decompile AssemblyVersion attribute. Closes #188 .
14 years ago
Daniel Grunwald
3779381796
Add support for type forwarding declarations ([TypeForwardedToAttribute]). Closes #190 .
14 years ago
Daniel Grunwald
32081feb1b
Decompile security declarations. Closes #189 .
14 years ago
Daniel Grunwald
2d42dd5c57
Fixed several issues related to [MarshalAs] attributes.
14 years ago
Daniel Grunwald
ae873ec18f
Fixed decompilation of anonymous methods created by the VB compiler. Closes #127 .
14 years ago
Daniel Grunwald
3833643aaf
Fixed issues with detection of using statements.
14 years ago
Daniel Grunwald
5c08e10a07
Fixed incorrect detection of the 'using' statement pattern when the code was assigning to the using variable. Closes #121 .
14 years ago
Daniel Grunwald
4abc650ecd
Fix NullReferenceException in TrransformSwitchOnString. Closes #95 .
14 years ago
Daniel Grunwald
e2794252fb
When decompiling a field, also decompile constructors to check whether there's an initializer on the field.
...
When decompiling a constructor, display field initializers outside of the constructor.
Closes #3 .
14 years ago
Daniel Grunwald
b01fe1b427
Fixed NullReferenceException when decompiling "typeof(List<int>[])".
14 years ago
Siegfried Pammer
439de223bf
implement proper fix for #179 + add unit test
14 years ago
Siegfried Pammer
e9eca059d5
remove isLastLine from interface - use stack instead; fix null reference if resolve of TypeDefinition fails
14 years ago
Daniel Grunwald
faf3a29a08
Fixed position of XML comments on nested types.
14 years ago
Daniel Grunwald
4ec92d9a55
Handle cpobj instruction as stobj(ldobj).
14 years ago
Daniel Grunwald
30fe30c236
Fix DecimalConstantTransform.
14 years ago
Daniel Grunwald
508073d6ac
Applied some of the optimizations suggested by Kris Vandermotten. #150
14 years ago
Siegfried Pammer
8c228a4df1
fix bug when printing type names introduced by commit 51fc2f10cc
14 years ago
Siegfried Pammer
ba0b80856c
add foldings to documentation comments; closes #165
14 years ago
Siegfried Pammer
51fc2f10cc
Look for generic type parameters defined in TypeDefinition, allows us to display angle brackets in unbound type names, e.g., typeof(List<>) fixes #179
14 years ago
Eusebiu Marcu
c81abc97ab
add current column in the node annotation tuple
14 years ago