add link for class

This commit is contained in:
Matt Parker
2025-10-11 12:52:02 +10:00
parent 9e968fbf60
commit 153b98b994

View File

@@ -220,6 +220,7 @@ public static class SymbolInfoComponents
{
if (methodSymbol.ContainingNamespace is null || methodSymbol.ContainingNamespace.IsGlobalNamespace) return;
var namespaces = methodSymbol.ContainingNamespace.ToDisplayString().Split('.');
label.PushMeta("TODO", RichTextLabel.MetaUnderline.OnHover);
foreach (var ns in namespaces)
{
label.PushColor(CachedColors.KeywordBlue);
@@ -230,6 +231,7 @@ public static class SymbolInfoComponents
label.PushColor(CachedColors.ClassGreen);
label.AddText(methodSymbol.ContainingType.Name);
label.Pop();
label.Pop(); // meta
}
private static void AddTypeParameterArguments(this RichTextLabel label, IMethodSymbol methodSymbol)