Skip to content

Commit 973553f

Browse files
committed
Nullability
1 parent b1178a7 commit 973553f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/CohostFindAllReferencesEndpointTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System.Linq;
55
using System.Threading.Tasks;
6+
using Microsoft.AspNetCore.Razor;
67
using Microsoft.AspNetCore.Razor.Test.Common;
78
using Microsoft.AspNetCore.Razor.Utilities;
89
using Microsoft.CodeAnalysis.ExternalAccess.Razor;
@@ -234,7 +235,7 @@ private async Task VerifyFindAllReferencesAsync(TestCode input, bool supportsVSE
234235
private static Location GetLocation(SumType<VSInternalReferenceItem, Location> r)
235236
{
236237
return r.TryGetFirst(out var refItem)
237-
? refItem.Location
238+
? refItem.Location ?? Assumed.Unreachable<Location>()
238239
: r.Second;
239240
}
240241
}

0 commit comments

Comments
 (0)