diff --git a/Rewrite/src/Rewrite.Core/Marker/SearchResult.cs b/Rewrite/src/Rewrite.Core/Marker/SearchResult.cs index 98040078..e9ba2c5b 100644 --- a/Rewrite/src/Rewrite.Core/Marker/SearchResult.cs +++ b/Rewrite/src/Rewrite.Core/Marker/SearchResult.cs @@ -7,10 +7,10 @@ public bool Equals(Marker? other) return other is SearchResult && other.Id.Equals(Id); } - public static T Found(MutableTree tree) + public static T Found(MutableTree tree, string? Description = null) where T : class { - return tree.WithMarkers(tree.Markers.AddIfAbsent(new SearchResult(Tree.RandomId()))); + return tree.WithMarkers(tree.Markers.AddIfAbsent(new SearchResult(Tree.RandomId(), Description))); } public string Print(Cursor cursor, Func commentWrapper, bool verbose)