Skip to content

Add integration with ILSpy's Lowering/Decompilation feature#471

Merged
waf merged 1 commit into
mainfrom
integrate-ilspy-lowering-feature
Jun 7, 2026
Merged

Add integration with ILSpy's Lowering/Decompilation feature#471
waf merged 1 commit into
mainfrom
integrate-ilspy-lowering-feature

Conversation

@waf
Copy link
Copy Markdown
Owner

@waf waf commented Jun 7, 2026

Add support for ILSpy's lowering/decompilation feature.

The actual feature work is not much code, given we can re-use all the same infrastructure that disassembly already has in place.

The PR seems a bit big but that's because I reorganized Disassembler.cs so I could reuse the same infrastructure for lowering. Now, a new class CodeTransformer does the compilation rather than the disassembler, and it passes this compilation information into either Disassembler or the new CodeLowerer.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 7, 2026

Codecov Report

❌ Patch coverage is 91.11748% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.7%. Comparing base (45245e1) to head (6dcd55b).

Files with missing lines Patch % Lines
...ces/CodeTransformation/Disassembly/Disassembler.cs 88.4% 8 Missing and 4 partials ⚠️
...rmation/Lowering/ImplementationAssemblyResolver.cs 83.7% 5 Missing and 1 partial ⚠️
...ervices/CodeTransformation/Lowering/CodeLowerer.cs 92.9% 4 Missing and 1 partial ⚠️
CSharpRepl/CSharpReplPromptCallbacks.cs 81.4% 2 Missing and 3 partials ⚠️
...epl.Services/CodeTransformation/CodeTransformer.cs 97.9% 0 Missing and 2 partials ⚠️
CSharpRepl/ReadEvalPrintLoop.cs 50.0% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #471     +/-   ##
=======================================
+ Coverage   71.4%   71.7%   +0.3%     
=======================================
  Files         96      99      +3     
  Lines       7133    7298    +165     
  Branches    1056    1080     +24     
=======================================
+ Hits        5095    5237    +142     
- Misses      1700    1719     +19     
- Partials     338     342      +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@waf waf merged commit 29de2bf into main Jun 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant