Jeremy Pritts
c1ecf1ae9c
Handle explicit optional parameter after default parameter ( #3470 )
...
* Handle explicit optional parameter after default parameter
* Rename and add documentation
* Move extension method
* Add unit test for lamba function
* Apply suggestions from code review
Co-authored-by: Siegfried Pammer <siegfried@pammer.io>
---------
Co-authored-by: Siegfried Pammer <siegfried@pammer.io>
1 year ago
Jeremy Pritts
0261ca3ae8
Fix stack overflow exception in CSharpResolver ( #3471 )
...
* Fix stack overflow exception in CSharpResolver
* lhs and rhs
1 year ago
ds5678
9827405f02
Fix null reference exception when writing resource files
1 year ago
Steve
0c230629e5
Correct flag to flags
1 year ago
Jeremy Pritts
aff9649711
Parenthesize interpolations containing `global::` ( #3463 )
...
* Parenthesize interpolations containing global::
* Improvements:
* Cleaner output
* More unit testing
* More efficient tree search
* Implement revisions
* Update Lambda1 to be invariant
* Visit descendents before deciding whether or not to parenthesize an interpolation expression
* Rename local function
* Remove branch for conditional expressions
* Handle Lambda expressions without a block body
* Check for parenthesized expressions
* `NET60` instead of `!NET40`
1 year ago
Siegfried Pammer
e7a6e27820
Fix #3464 : Missing cast in string interpolation
1 year ago
Christoph Wille
988fee69ef
Set version 9.1
1 year ago
Siegfried Pammer
b1a617c827
AssignVariableNames: Fix ArgumentException
1 year ago
Siegfried Pammer
a85e5b513d
Fix a possible NRE in XmlDocumentationElement and wrong nullable annotations in analyzers.
1 year ago
Siegfried Pammer
e5a85422d3
Fix #3457 : NRE when creating Mermaid diagram of assembly with (possibly) missing references.
1 year ago
Christoph Wille
3ed6da38df
NuGet updates 04/25 ( #3459 )
1 year ago
ds5678
fb180b0010
Add tests
1 year ago
ds5678
db45fc70a2
Fix regression: UseNestedDirectoriesForNamespaces
1 year ago
Siegfried Pammer
6c72d1c5f0
Add transform to remove unconstrained generic reference type check.
1 year ago
ds5678
ceed9eb01a
Dont call GetPointerArithmeticOffset twice unnecessarily
1 year ago
Siegfried Pammer
9f77f8a919
Prevent inlining of call arguments when doing so would change order of evaluation with regards to the implicit ldobj performed by a constrained.callvirt.
1 year ago
ds5678
8c29144811
Add struct to struct tests
1 year ago
ds5678
d75da053a8
Use type hint in pointer arithmetic when appropriate
1 year ago
Siegfried Pammer
485ca1d69a
Fix #3353 : Normal method is decompiled as lambda expression.
1 year ago
Siegfried Pammer
453fc06e02
Fix #3406 : Wrong decompilation of record struct without primary constructor.
1 year ago
ds5678
7f024de786
Don't include generic constraints in generated explicit overrides
1 year ago
Siegfried Pammer
7d0262d779
Fix #3439 : Regressed decompilation of variables in lambda scope
1 year ago
Siegfried Pammer
349a89c1fa
Fix #3436 : Duplicate naming of local functions
1 year ago
Siegfried Pammer
96caa4ecb7
Fix : #3407 Add "private protected" feature for 7.2 decompiler options
1 year ago
Siegfried Pammer
51522c4487
Fix #3190 : NRE in YieldReturnDecompiler
1 year ago
Siegfried Pammer
29861d7903
Fix #1647 : Add a cast to enum constants where the enum type is not known.
1 year ago
Siegfried Pammer
356d7a1b43
Fix #3408 : Wrong exported assembly type
1 year ago
Siegfried Pammer
355a039b59
Sightly improve variable naming of known types such as EventArgs and Exceptions
1 year ago
Siegfried Pammer
8a67f48e4e
Fix #1956 : Adapt previous fix for variable names that have a number as suffix.
1 year ago
Siegfried Pammer
ffcd468d22
Fix #1572 : parameters of lambdas and local functions are renamed, if there are with names from outer scopes collisions.
1 year ago
Siegfried Pammer
0481c7d1ee
Improve LINQ decompiler to support combining lambda parameter names if they syntactically refer to the same range variable
1 year ago
Siegfried Pammer
03aecf047d
Add VariableScope and rework AssignVariableNames step to support renaming parameters of nested ILFunctions in the future.
1 year ago
Siegfried Pammer
a599aae54d
#1572 : Do not generate variable names that match C# keywords.
1 year ago
Siegfried Pammer
73e9771d3c
Fix #2269 : LocalFunctionDecompiler misplaces nested local functions in ctors
1 year ago
ElektroKill
16600fa633
Addressed feedback
1 year ago
Siegfried Pammer
49942382d1
Fix #3432 : Do not include delegate construction use-sites in DetermineCaptureAndDeclarationScopes.
1 year ago
ElektroKill
012f5812e9
Fix #3423
1 year ago
ds5678
e4000c8a5c
Enhance null handling in switch transformations
...
- Updated `Issue3421.cs`.
- Updated `MatchLegacySwitchOnStringWithDict` to check for `leaveContainer` and handle null sections accordingly.
- Introduced an overload for `AddNullSection` to accept `ILInstruction` as the body, improving flexibility.
- Modified existing `AddNullSection` to utilize the new overload, allowing for varied body types in `SwitchSection`.
1 year ago
ds5678
cbe8dd43d7
Fix null check in MatchLegacySwitchOnStringWithDict
...
Updated the condition for `nullValueCaseBlock` to ensure it is not null and not equal to `defaultBlock`.
1 year ago
Siegfried Pammer
f0f95efa05
Fix StateRangeAnalysis to handle changes in yield return codegen in Roslyn 4.13.
1 year ago
jwfx
5d1219950f
Fix exception when writing resx files without adding any resources
1 year ago
ds5678
3a13d5a698
Allow explicit null termination character
1 year ago
Siegfried Pammer
38cdf6d50a
Avoid transforming sub pattern of cpblk stackalloc initializer
1 year ago
Siegfried Pammer
bd0fd8db1f
Small refactorings:
...
- extract common code
- reduce nesting
1 year ago
ds5678
b0d6fa2276
Add support for array initialization based on RuntimeHelpers.CreateSpan<T>
1 year ago
Siegfried Pammer
53522c45f8
#3401 : fix missing file extension if name contains ':'
1 year ago
Siegfried Pammer
3c70224441
Fix detection and display of explicitly implemented operators.
1 year ago
Siegfried Pammer
31bbcf41bc
Fix handling of file extensions in project export.
1 year ago
Siegfried Pammer
292c21d68e
#3401 : Treat class name as single name and not as path.
1 year ago
Siegfried Pammer
6312ab18ae
#2716 : Fix typo
1 year ago