Alex Lyman
016987427b
- 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
5c3be8f4cc
- 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
c1d27c7770
- 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
eb6f6c19c1
Make ConvertChar and ConvertString public.
14 years ago
Daniel Grunwald
b07228e982
Fixed issues with detection of using statements.
14 years ago
Daniel Grunwald
a238bf1cfe
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
Siegfried Pammer
3974a801e1
remove isLastLine from interface - use stack instead; fix null reference if resolve of TypeDefinition fails
14 years ago
Daniel Grunwald
9a35ee4404
Applied some of the optimizations suggested by Kris Vandermotten. #150
14 years ago
Siegfried Pammer
5997f81668
add foldings to documentation comments; closes #165
14 years ago
Eusebiu Marcu
e434783155
get AST nodes locally
14 years ago
Eusebiu Marcu
a7f45f683a
add icon margin & bookmarks
14 years ago
Siegfried Pammer
99b4726d91
fix https://github.com/icsharpcode/ILSpy/issues/177
14 years ago
Siegfried Pammer
e1ee10ae10
start implementing new VB AST; remove AST generator
14 years ago
Mike Krüger
b9aa1ec940
Added some null checks.
14 years ago
Mike Krüger
3b051e58d2
Fixed alias 'global' member location.
14 years ago
Mike Krüger
8be17ea80c
Updated mcs/fixed qualifiedalias member location.
14 years ago
Daniel Grunwald
5d83bea67f
C# type system convert visitor: add support for attribute arguments.
15 years ago
Daniel Grunwald
a917b1cfb1
Evaluate constant expressions in the correct context.
15 years ago
Daniel Grunwald
e1ac50d734
Implemented C# attributes.
15 years ago
Daniel Grunwald
eb24135e41
Implemented IConstantValue for C#.
...
Fixed bugs when resolving conditional expressions.
15 years ago
Daniel Grunwald
b8330bebd6
Remove parent pointer from ITypeParameter and enable sharing type parameters.
15 years ago
Daniel Grunwald
f3b9d118d1
When the last statement in a block is a label, add an EmptyStatement so that the generated code is valid.
15 years ago
Mike Krüger
ca6b0e1ae4
fixed primitve types.
15 years ago
Mike Krüger
094cac416d
Added some creation constructors.
15 years ago
Mike Krüger
b7cd75a5ae
Fixed unit test.
15 years ago
Daniel Grunwald
e68833dd33
Add TestPlugin.
15 years ago
Mike Krüger
9fedc310ac
Handled undocumented expressions.
15 years ago
Mike Krüger
7d4ef1a665
Added support for quoted identifiers.
15 years ago
Daniel Grunwald
b22b3ec56f
C# OutputVisitor: improve indentation of query expressions
15 years ago
Daniel Grunwald
2ca7ec2808
Fixed output of NamedArgumentExpression within object initializers.
15 years ago
Daniel Grunwald
43e33f88c0
Fixed InsertParenthesesVisitor for casts of negative primitive expressions.
15 years ago
Daniel Grunwald
f30490c2a5
Add some parser unit tests.
15 years ago
Daniel Grunwald
307559c5ac
Remove NextStatement/PrevStatement properties - too many properties can be confusing (e.g. a loop's EmbeddedStatement would show up next to those two properties)
15 years ago
Daniel Grunwald
90542d2ea2
Fix parsing of query continuations for queries with multiple from clauses.
15 years ago
Mike Krüger
ccd06a496c
Fixed query expression tests.
...
Had to add a new node type: AnonymousTypeCreateExpression.
15 years ago
Daniel Grunwald
d4eaffbb42
Make pattern matching AST independent from C# AST.
15 years ago
Daniel Grunwald
e8d472ba89
Rename FixedVariableInitializer.Initializer to CountExpression (this makes it consistent with StackAllocExpression).
15 years ago
Mike Krüger
16715bb854
Renamed CSharpFormattingPolicy to CSharpFormattingOptions.
15 years ago
Mike Krüger
f4450d1fbd
Fixed some invocation expression tests.
15 years ago
Mike Krüger
42463a4e0c
Fixed unit test TestIdentifierContainingEscapeSequence.
15 years ago
Mike Krüger
021a9fbc70
Fixed typeofexpression tests.
15 years ago
Mike Krüger
bd51beedee
Fixed GlobalFullNamespaceGenericFieldReferenceExpressionTest.
15 years ago
Mike Krüger
0722289a8d
Updated mcs, fixed failing unit test.
15 years ago
Mike Krüger
94c18d6ddc
Fixed delegate declaration tests.
15 years ago
Mike Krüger
a45fa11b2a
Fixed event declaration tests.
15 years ago
Mike Krüger
9083beecc4
Fixed constructor declaration tests.
15 years ago
Mike Krüger
873c18530b
Added attribute section parsing / fixed indexer declaration tests.
15 years ago
Mike Krüger
2353804bfa
Fixed field declaration tests.
15 years ago
Daniel Grunwald
f3c52a0609
Add OperatorDeclaration.GetOperatorType() helper method.
15 years ago
Mike Krüger
4e60911bb0
Fixed method declaration tests.
15 years ago