Skip to content

Commit 3fba16d

Browse files
Moves TagHelperSpanVisitor to Legacy namespace
Moves the `TagHelperSpanVisitor` 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 6a37ec7 commit 3fba16d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Collections.Immutable;
5-
using Microsoft.AspNetCore.Razor.Language.Legacy;
65
using Microsoft.AspNetCore.Razor.Language.Syntax;
76
using Microsoft.AspNetCore.Razor.PooledObjects;
87

9-
namespace Microsoft.AspNetCore.Razor.Language;
8+
namespace Microsoft.AspNetCore.Razor.Language.Legacy;
109

11-
internal class TagHelperSpanVisitor : SyntaxWalker
10+
internal sealed class TagHelperSpanVisitor : SyntaxWalker
1211
{
1312
private readonly RazorSourceDocument _source;
1413
private readonly ImmutableArray<TagHelperSpanInternal>.Builder _spans;

0 commit comments

Comments
 (0)