Skip to content

feat(decompiler): link override keyword to base member definition#3741

Open
leno23 wants to merge 1 commit into
icsharpcode:masterfrom
leno23:fix/override-keyword-hyperlink-2035
Open

feat(decompiler): link override keyword to base member definition#3741
leno23 wants to merge 1 commit into
icsharpcode:masterfrom
leno23:fix/override-keyword-hyperlink-2035

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Fixes #2035

When decompiling C# with syntax highlighting enabled, the override modifier is now emitted as a hyperlink to the nearest overridden member (via InheritanceHelper.GetBaseMember), similar to Visual Studio go-to-definition on override.

Implementation is in TextTokenWriter.WriteKeyword, alongside the existing this/base constructor-initializer references.

Also fixes a duplicate word typo (next to tonext to the) in ilspycmd --generate-diagrammer help text.

Test plan

  • Open an assembly with overridden methods in ILSpy, decompile a derived type, Ctrl+click override and confirm navigation to the base member
  • CI: decompiler / ILSpy build

I do not have a local .NET SDK in this environment; changes were not built locally.

Made with Cursor

Make the override modifier a navigation hyperlink to the nearest
overridden member, matching Visual Studio go-to-definition behavior.

Also fix a duplicate "to" typo in ilspycmd --generate-diagrammer help.

Fixes icsharpcode#2035
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"override" keyword should be a hyperlink

2 participants