You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactors the way classified spans are computed for Razor code documents intooling.
This change replaces the usage of legacy compiler APIs with a new `ClassifiedSpanVisitor`.
The new implementation is streamlined to only produce the information needed for the `GetLanguageKind()` API, improving performance and reducing dependencies.
This also includes changing the `ClassifiedSpanInternal` to `ClassifiedSpan` and removing the dependency on `Microsoft.AspNetCore.Razor.Language.Legacy`.
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Extensions/RazorCodeDocumentExtensions.CachedData.cs
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@
6
6
usingSystem.ComponentModel;
7
7
usingSystem.Runtime.CompilerServices;
8
8
usingSystem.Threading;
9
-
usingMicrosoft.AspNetCore.Razor.Language.Legacy;
10
9
usingMicrosoft.AspNetCore.Razor.Language.Syntax;
11
10
usingMicrosoft.AspNetCore.Razor.PooledObjects;
12
11
usingMicrosoft.CodeAnalysis;
@@ -41,7 +40,7 @@ private sealed class CachedData(RazorCodeDocument codeDocument)
0 commit comments