Comments (3)
There's already an interface IDebugInfoProvider
intended for proving pluggable support for debug information (e.g. different .pdb file readers). This includes the functionality to provide variable names for local slots via the TryGetName
method.
from ilspy.
That is what I used initially
However, it doesn't cover StackSlot variables - the intermediate variables introduced by ILSpy for the sake of readability
What I'm describing is a way to extend or hook into the name generation part, rather than a mapping of locals to variable names
from ilspy.
I have noticed a related issue
The variable name generation in ILSpy.Decompilation performs name collision checks on the entire method, I assume for performance and simplicity reasons.
For the reasons stated initially in this thread, long methods result in loop index variables, loop enumerator variables, and similar limited scope variables having unnecessary number suffixes appended to them.
Would modifying the logic to perform scope-based name collision detection be a good enhancement to ILSpy.Decompilation in general?
from ilspy.
Related Issues (20)
- ILSpy support for .NET 9 HOT 1
- The difference between ICSharpCode.Decompiler.dll and ILSPY decomplie
- Option to disable linq expression syntax in ilspycmd
- ICSharpCode.Decompiler.TypeSystem.IType property values should match System.Reflection.Type property values
- Drag and drop a folder to ILSpy?
- ILSpy Developer Meeting 2024, July 19th-21st
- How to decompile Assembly-CSharp.dll? HOT 3
- OverridableAttribute missing from the decompiled code when using a winmd file. HOT 1
- Interface improvements, lengthen what needs to be long and shorten what shouldn't
- Inconsistent and uncompilable decompilation for a combination of null forgiving operator and extension method usage
- Wrong decompilation of null nullable int
- System.NullReferenceException: Object reference not set to an instance of an object. HOT 2
- Installation Path HOT 2
- ICSharpCode.ILSpy.AssertionFailedException: StackTypes must match!
- System.NullReferenceException: Object reference not set to an instance of an object.
- Redesign the App Icon to match the Windows 11 HOT 1
- Can't open the .NET bundle file. HOT 3
- Clearer Hotkeys / Shortcuts..?
- ILSpy generated code reference DisplayClass. HOT 1
- New Command Line Parameter `@file`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ilspy.