File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,9 @@ namespace Microsoft.AspNetCore.Razor.Language;
16
16
// not all characters in the document are included in the ClassifiedSpans.
17
17
internal sealed class RazorHtmlWriter : SyntaxWalker
18
18
{
19
- // 32 '~' characters followed by comment start and end text.
20
- private const string KnownText = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/**/" ;
21
-
22
- private static ReadOnlyMemory < char > Tildes => KnownText . AsMemory ( 0 , 32 ) ;
23
- private static ReadOnlyMemory < char > CommentStart => KnownText . AsMemory ( 32 , 2 ) ;
24
- private static ReadOnlyMemory < char > CommentEnd => KnownText . AsMemory ( 34 , 2 ) ;
19
+ private static ReadOnlyMemory < char > Tildes => "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" . AsMemory ( ) ; // 32 '~' characters
20
+ private static ReadOnlyMemory < char > CommentStart => "/*" . AsMemory ( ) ;
21
+ private static ReadOnlyMemory < char > CommentEnd => "*/" . AsMemory ( ) ;
25
22
26
23
private readonly RazorSourceDocument _source ;
27
24
private readonly CodeWriter _codeWriter ;
You can’t perform that action at this time.
0 commit comments