Skip to content

Commit

Permalink
fixup! Add feature to strike out obsolete symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Mar 26, 2024
1 parent 4aa6979 commit 4550b24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ class C
""",
testHost,
Namespace("System"),
Class("Obsolete"));
Class("Obsolete"),
Obsolete("C"));
}

[Theory, CombinatorialData]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ public static FormattedClassification Property(string text)
public static FormattedClassification Event(string text)
=> New(text, ClassificationTypeNames.EventName);

[DebuggerStepThrough]
public static FormattedClassification Obsolete(string text)
=> New(text, ClassificationTypeNames.ObsoleteSymbol);

[DebuggerStepThrough]
public static FormattedClassification Static(string text)
=> New(text, ClassificationTypeNames.StaticSymbol);
Expand Down

0 comments on commit 4550b24

Please sign in to comment.