Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Generate IL assembly listing for compiler-generated stubs - #4365

Merged
MichalStrehovsky merged 4 commits into
dotnet:masterfrom
MichalStrehovsky:debugInfoProvider
Aug 25, 2017
Merged

MichalStrehovsky merged 4 commits into
dotnet:masterfrom
MichalStrehovsky:debugInfoProvider

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Fixes #1192.

@davidwrighton davidwrighton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it ... but some small tweaks remain.

/// Debug information provider that generates IL assembly listing for compiler-generated
/// IL stubs.
/// </summary>
public class SyntheticMethodDebugInfoProvider : DebugInformationProvider, IDisposable

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a good name for this class. Maybe something like MethodDebugInfoProviderForAllMethodsIncludingOnesWithOnlyDynamicallyGeneratedILBodies... Ok, on second thought, that name isn't good either, but this one implies its only doing stuff for synthetic methods, and that's simply wrong. Also, please update the comment.

/// </summary>
public class DebugInformationProvider
{
public virtual bool IsNull => false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't really make sense here. Its more of a per methodIL property ... if you just wanted IsNull like this... just use ... is NullDebugInformationProvider via the typesystem instead of adding an api.

@MichalStrehovsky
MichalStrehovsky merged commit fa54912 into dotnet:master Aug 25, 2017
@MichalStrehovsky
MichalStrehovsky deleted the debugInfoProvider branch August 25, 2017 16:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants