Mike Krüger
4ea7ebc517
Moved more roles to the Roles class/Changed TypeDeclaration
...
representation (saves some memory and class type is now always
defined).
14 years ago
Mike Krüger
6a0a96ce31
Moved some roles to the Roles class.
14 years ago
Mike Krüger
90bf204c7f
Moved the roles class out of AstNode.
14 years ago
Daniel Grunwald
c6ae6c30ee
Script refactoring.
14 years ago
Daniel Grunwald
a353f23d70
Combine AttributedNode and MemberDeclaration into EntityDeclaration.
14 years ago
Daniel Grunwald
3eee3466a4
CSharpOutputVisitor is now using the IAstVisitor with void return type.
...
Removed default value for 'data' on AcceptVisitor() methods.
14 years ago
Mike Krüger
3ffbaa278a
Refactored c# token representation, it's now more consistent with the
...
other nodes and takes up a bit less memory.
14 years ago
Daniel Grunwald
2bebee46a1
C# XML documentation support.
14 years ago
Daniel Grunwald
9f809bc729
Use IOutputFormatter.StartNode() instead of OutputStarted event.
14 years ago
Mike Krüger
3b4abcceb3
Fixed ast node script positions.
14 years ago
Daniel Grunwald
54168d5c0f
Add nuspec.
...
Changed project settings to produce xml-doc and debug symbols in release configuration.
14 years ago
Daniel Grunwald
44b1c40e70
Remove some dead code.
14 years ago
Daniel Grunwald
3e8eb1e55d
Add NRefactory.ConsistencyCheck with round-tripping test.
...
Added parser unit tests for bugs discovered by the round-tripping test.
14 years ago
Daniel Grunwald
8007d25b00
Fix CSharpOutputVisitorTests.AssignmentInCollectionInitializer.
...
Ignore some failing parser unit tests.
14 years ago
Mike Krüger
77a75818d6
Fixed constraints parsing #2 .
14 years ago
Daniel Grunwald
a71670f2bc
Fixed some issues with code round-tripping; and added unit tests for some parser failures.
14 years ago
Daniel Grunwald
4db74d9da0
Fixed roundtripping of preprocessor directives.
14 years ago
Mike Krüger
7e5380551b
Updated mcs/fixed some code completion cases.
14 years ago
Mike Krüger
ec82082a36
Handled pre processor directives as separate AST node.
14 years ago
Daniel Grunwald
4bbcf2dc11
Add "public ResolveResult Body { get; }" to LambdaResolveResult.
14 years ago
Daniel Grunwald
fd8f8cf6cb
Adjust AST for async/await.
14 years ago
Daniel Grunwald
e4d1f545fd
Add CodeDomConvertVisitor.
14 years ago
Siegfried Pammer
5beb702c2e
implement CSharpAmbience for ITypeDefinition
14 years ago
Daniel Grunwald
b5b2408cbc
Move NRefactory.CSharp to separate assembly.
14 years ago
Mike Krüger
02fe3e32e5
Fixed array create expression tests.
14 years ago
Mike Krüger
abbf9d661d
Used the namedexpression instead of assignment/namedargument
...
expressions.
14 years ago
Mike Krüger
3e99fabb2e
Fixed object create expression tests /remove named expression lists
...
(was an obsolete node).
I tried out the node, but choosed to go with namedexpression +
arrayinitializerexpression because it's semantically the same.
14 years ago
Mike Krüger
c373100923
Fixed ComplexCollectionInitializer tests.
14 years ago
Mike Krüger
3763397da8
Introduced namedexpression/namedexpressionlist to handle the
...
collection initializers better.
14 years ago
Daniel Grunwald
5c585e110b
Apply license header to unit tests.
...
Add parser unit tests for ObjectCreateExpression.
14 years ago
Daniel Grunwald
f86a014b9c
Put MIT license into the file headers.
14 years ago
Daniel Grunwald
b40610dcb6
Simplify nested synchronization of CompositeTypeResolveContext.
14 years ago
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
Mike Krüger
6e1eaf15f8
Added monodevelop context actions.
14 years ago
Mike Krüger
7070e471c0
corrected output of primitive expressions.
...
Primitive expressions contain a literal value which should be
preferred ("0x10" vs "16").
14 years ago
Mike Krüger
f76181376f
Fixing switch section output + it's now possible to track node output
...
in the output visitor.
14 years ago
Mike Krüger
79f17985ea
Put embedded statments onto next line.
14 years ago
Daniel Grunwald
eb6f6c19c1
Make ConvertChar and ConvertString public.
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
Siegfried Pammer
5997f81668
add foldings to documentation comments; closes #165
14 years ago
Siegfried Pammer
99b4726d91
fix https://github.com/icsharpcode/ILSpy/issues/177
14 years ago
Daniel Grunwald
eb24135e41
Implemented IConstantValue for C#.
...
Fixed bugs when resolving conditional expressions.
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
9fedc310ac
Handled undocumented expressions.
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
Mike Krüger
ccd06a496c
Fixed query expression tests.
...
Had to add a new node type: AnonymousTypeCreateExpression.
15 years ago