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.
15 years ago
Daniel Grunwald
e4d1f545fd
Add CodeDomConvertVisitor.
15 years ago
Siegfried Pammer
5beb702c2e
implement CSharpAmbience for ITypeDefinition
15 years ago
Daniel Grunwald
b5b2408cbc
Move NRefactory.CSharp to separate assembly.
15 years ago
Mike Krüger
02fe3e32e5
Fixed array create expression tests.
15 years ago
Mike Krüger
abbf9d661d
Used the namedexpression instead of assignment/namedargument
...
expressions.
15 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.
15 years ago
Mike Krüger
c373100923
Fixed ComplexCollectionInitializer tests.
15 years ago
Mike Krüger
3763397da8
Introduced namedexpression/namedexpressionlist to handle the
...
collection initializers better.
15 years ago
Daniel Grunwald
5c585e110b
Apply license header to unit tests.
...
Add parser unit tests for ObjectCreateExpression.
15 years ago
Daniel Grunwald
f86a014b9c
Put MIT license into the file headers.
15 years ago
Daniel Grunwald
b40610dcb6
Simplify nested synchronization of CompositeTypeResolveContext.
15 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
15 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.
15 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
15 years ago
Mike Krüger
6e1eaf15f8
Added monodevelop context actions.
15 years ago
Mike Krüger
7070e471c0
corrected output of primitive expressions.
...
Primitive expressions contain a literal value which should be
preferred ("0x10" vs "16").
15 years ago
Mike Krüger
f76181376f
Fixing switch section output + it's now possible to track node output
...
in the output visitor.
15 years ago
Mike Krüger
79f17985ea
Put embedded statments onto next line.
15 years ago
Daniel Grunwald
eb6f6c19c1
Make ConvertChar and ConvertString public.
15 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 .
15 years ago
Siegfried Pammer
3974a801e1
remove isLastLine from interface - use stack instead; fix null reference if resolve of TypeDefinition fails
15 years ago
Siegfried Pammer
5997f81668
add foldings to documentation comments; closes #165
15 years ago
Siegfried Pammer
99b4726d91
fix https://github.com/icsharpcode/ILSpy/issues/177
15 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
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
873c18530b
Added attribute section parsing / fixed indexer declaration tests.
15 years ago
Daniel Grunwald
f3c52a0609
Add OperatorDeclaration.GetOperatorType() helper method.
15 years ago
Mike Krüger
cc209b45f9
Fixed ArrayObjectCreateExpression tests.
15 years ago
Mike Krüger
f03042647c
Added extern alias node.
15 years ago
Mike Krüger
d8e26ed8dc
Added fixed field ast node.
...
I thought about this a bit - it's a better solution to invent a new
node for this construct even if it's reallly close to fields. Really
close != same.
15 years ago
Mike Krüger
2bee26ad27
Added AST formatting visitor.
15 years ago
Mike Krüger
749f5a885e
Updated parser & mcs.
15 years ago
Daniel Grunwald
3cc6fabec4
Allow performing definite assignment analysis without providing an ITypeResolveContext.
15 years ago
Daniel Grunwald
f68a49b509
Improve spacing in fixed statement output.
15 years ago
Daniel Grunwald
3ad453dc5d
Add OptionalNode for pattern matching.
15 years ago
Artur Zgodziski
73350e7158
small code reformatting
15 years ago