Skip to content

Commit 5efed97

Browse files
CR Feedback: Rename method for clarity
1 parent dc29f2b commit 5efed97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Extensions/RazorCodeDocumentExtensions.CachedData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private sealed class CachedData(RazorCodeDocument codeDocument)
4242
private ImmutableArray<ClassifiedSpanInternal>? _classifiedSpans;
4343
private ImmutableArray<TagHelperSpanInternal>? _tagHelperSpans;
4444

45-
public SyntaxTree GetOrParseSyntaxTree(CancellationToken cancellationToken)
45+
public SyntaxTree GetOrParseCSharpSyntaxTree(CancellationToken cancellationToken)
4646
{
4747
if (_syntaxTree is { } syntaxTree)
4848
{

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Extensions/RazorCodeDocumentExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static SourceText GetHtmlSourceText(this RazorCodeDocument document)
4545
/// If a tree has not yet been cached, a new one will be parsed and added to the cache.
4646
/// </summary>
4747
public static SyntaxTree GetOrParseCSharpSyntaxTree(this RazorCodeDocument document, CancellationToken cancellationToken)
48-
=> GetCachedData(document).GetOrParseSyntaxTree(cancellationToken);
48+
=> GetCachedData(document).GetOrParseCSharpSyntaxTree(cancellationToken);
4949

5050
public static bool TryGetGeneratedDocument(
5151
this RazorCodeDocument codeDocument,

0 commit comments

Comments
 (0)