Skip to content

Commit 3d71e4c

Browse files
Moves ClassifiedSpanVisitor to Legacy namespace
Moves the `ClassifiedSpanVisitor` to the `Legacy` namespace since it is only accessed by code in that namespace. This change is part of an effort to better organize the Razor compiler's internal structure. It specifically isolates legacy code.
1 parent 2d90c0c commit 3d71e4c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/ClassifiedSpanVisitor.cs renamed to src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Legacy/ClassifiedSpanVisitor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33

44
using System.Collections.Immutable;
55
using System.Diagnostics;
6-
using Microsoft.AspNetCore.Razor.Language.Legacy;
76
using Microsoft.AspNetCore.Razor.Language.Syntax;
87
using Microsoft.AspNetCore.Razor.PooledObjects;
98
using Microsoft.Extensions.ObjectPool;
109

11-
namespace Microsoft.AspNetCore.Razor.Language;
10+
namespace Microsoft.AspNetCore.Razor.Language.Legacy;
1211

13-
internal class ClassifiedSpanVisitor : SyntaxWalker
12+
internal sealed class ClassifiedSpanVisitor : SyntaxWalker
1413
{
1514
private static readonly ObjectPool<ImmutableArray<ClassifiedSpanInternal>.Builder> Pool = DefaultPool.Create(Policy.Instance, size: 5);
1615

0 commit comments

Comments
 (0)