Daniel Grunwald
21d3881e37
Introduce named arguments only in the statement transform.
...
Don't use extension method syntax when 'this' parameter of
extension method is named.
7 years ago
Daniel Grunwald
810adea8b4
#1083 : Initial implementation of named arguments.
7 years ago
Daniel Grunwald
bcc1586f72
ILAst transform for named arguments.
7 years ago
Daniel Grunwald
243a347da1
Revert "#1083: Add ArgumentToParameterMap to CallInstruction, in ILAst output call arguments are now prefixed with the parameter index they correspond to, if the mapping is different from the default."
...
This reverts commit 60ace84f26
.
7 years ago
Daniel Grunwald
5c0c492c1f
Merge pull request #1134 from icsharpcode/tuple
...
C# 7.0 tuples
7 years ago
Daniel Grunwald
5cdd5ecdbc
Use target typing for tuples, where possible.
7 years ago
Daniel Grunwald
926c7850ac
Distinguish between unknown type and no type.
7 years ago
Siegfried Pammer
b3db473211
Fix bug in AssignVariableNames: The first parameter of indexer getters was not properly handled.
7 years ago
Siegfried Pammer
497de76a2f
Update test case for #1145
7 years ago
Siegfried Pammer
1646be7482
#1145 : Make type arguments optional in mcs auto event pattern.
7 years ago
Siegfried Pammer
e012fe04be
Fix #1146 : C#3+ property accessor generates bad "[field: " tag on the accessor
7 years ago
Siegfried Pammer
9443983819
Fix #1144 : MatchRoslynCaseBlockHead did not handle inverse conditions properly.
7 years ago
Siegfried Pammer
60ace84f26
#1083 : Add ArgumentToParameterMap to CallInstruction, in ILAst output call arguments are now prefixed with the parameter index they correspond to, if the mapping is different from the default.
7 years ago
Daniel Grunwald
50509c4985
Fix #1140 : Fix assertion when finally block unconditionally throws an exception.
7 years ago
Siegfried Pammer
91389245fd
#545 : Add hyperlink on enum values and argument names in attribute declarations.
7 years ago
Siegfried Pammer
ad06a01441
Fix #1117 : NullReferenceException at Transforms.PatternStatementTransform.TransformForeachOnArray
7 years ago
Siegfried Pammer
bd15d69ada
Add test cases for #1138
7 years ago
Siegfried Pammer
5290677f80
Fix #1138 : Array-index out of bounds crash in TransformArrayInitializers.HandleSimpleArrayInitializer
7 years ago
Siegfried Pammer
b6dce5c27a
Fix #1137 : XamlParseException on startup - we require .NET 4.6 for the ILSpy UI: Update app.config.template to reflect this.
7 years ago
Daniel Grunwald
92b72c9570
Type system: add support for tuple conversions.
7 years ago
Daniel Grunwald
469501210c
Add support for C# 7 tuple types:
...
* Use tuple literals instead of calling 'new ValueTuple<..>' constructor
* Where available, use element names for field access
* Make CallBuilder aware of tuple-name/dynamic type erasure, to avoid introducing casts when the types differ only in the tuple element names.
* Make CallBuilder provide a ResolveResult with the correct C# return type for the resulting expression.
Previously we were using the type-erased return type from the IL.
* Fix a bug that caused us to introduce returning casts when accessing an indexer.
7 years ago
Daniel Grunwald
395bc185a3
Decompile TupleElementNamesAttribute into tuple type syntax.
7 years ago
Daniel Grunwald
d78d423d10
Add tuple types to type system and syntax tree.
7 years ago
Daniel Grunwald
58dfd70855
Revive NR ConversionTests
7 years ago
Daniel Grunwald
7757d98672
Remove unused IProjectContent+ISolutionSnapshot from type system.
7 years ago
Daniel Grunwald
61cbdd6f01
Removed unused TS code: IType.ToTypeReference()
7 years ago
Daniel Grunwald
0b48439170
Remove dead code from type system (CSharpConstantValue).
7 years ago
Daniel Grunwald
182ce2a7c3
Remove unused JsonWriter.
7 years ago
Siegfried Pammer
c53b898b55
Fix #1122 : Error decompiling dictionary initializer referencing parameter variable
7 years ago
Siegfried Pammer
ceb4e3eed0
Add C# 7.3 to language version dropdown.
7 years ago
Siegfried Pammer
a9ecbe9d86
Set master version to 3.2.0-alpha
7 years ago
Siegfried Pammer
69fdc55b41
Add support for C# 7.3 Attributes on backing fields: Allows [field: …] attributes on an auto-implemented property to target its backing field.
7 years ago
Daniel Grunwald
f4bbd100b9
Fix user-defined op_Addition 'p += 1;' being turned into 'p++;'
7 years ago
Siegfried Pammer
504fe200b6
Fix #1131 : Add a few safety null checks in TransformForeachOnMultiDimArray
7 years ago
Siegfried Pammer
644941d25b
Fix C# 1.0 switch on string transform and add tests
7 years ago
Daniel Grunwald
f7a314b64c
Merge pull request #1129 from icsharpcode/userdef-compound-assignment
...
Userdef compound assignment
7 years ago
Daniel Grunwald
0552b335c9
Implement InferType() for ldelema.
...
This improves decompilation of compound assignment on array elements.
7 years ago
Daniel Grunwald
f021ec4383
NumericCompoundAssign: implement ILiftableInstruction
7 years ago
Daniel Grunwald
3956fa685d
Refactor TransformAssignment to reduce code duplication.
7 years ago
Siegfried Pammer
a4ef9891dd
Reduce span of DisableAssemblyLoad-lock
7 years ago
Siegfried Pammer
6a1e865fba
Fix ScopedWhereUsedAnalyzer.GetReferencingAssemblies: When looking for referenced assemblies use built-in assembly resolver. This makes the analyzer use the same assembly references as the decompiler, which leads to better analysis results, or even any results when dealing with an assembly for which the framework is not installed. (Might be related to #1070 as well)
7 years ago
Siegfried Pammer
110d4592a6
Add delayed type inference step for stack slots (in RemoveDeadVariableInit).
7 years ago
Siegfried Pammer
9ebfbe57dd
Add transforms for userdef compound assignment
...
fix bugs in other transforms
7 years ago
Siegfried Pammer
845c620a9f
Implement UserDefinedCompoundAssign
...
rename CompoundAssignmentInstruction -> NumericCompoundAssign
7 years ago
Siegfried Pammer
e7c38b6cbd
Fix bug in PrettifyAssignments: did not convert +=/-= 1 on non-int expressions.
7 years ago
Siegfried Pammer
f4b2c83f1e
Add test cases for UserDefinedCompoundAssign
7 years ago
Daniel Grunwald
25706f2a39
Support logic.and/etc. in IsImplicitTruncation().
7 years ago
Daniel Grunwald
75a627d40b
Don't use compound assignment when the RHS value does not fit into the LHS type.
7 years ago
Daniel Grunwald
ceb2b69798
Update the Roslyn compiler for the tests to 2.8.0.
7 years ago
Daniel Grunwald
b2197b2f95
Regenerate all IL test cases.
...
This removes non-deterministic and system-dependent info from the files, so that in the future,
diffs should only show relevant changes.
7 years ago