1 write to Text
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\RazorCSharpDocument.cs (1)
51Text = text;
14 references to Text
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\RazorCSharpDocument.cs (2)
33/// The generated C# code as a string. Prefer <see cref="Text"/>, which avoids materializing the 36public string GeneratedCode => Text.ToString();
SourceGenerators\RazorSourceGenerator.cs (11)
137a.declCSharpDocument!.Text.ContentEquals(b.declCSharpDocument!.Text)) 144context.AddSource(GetDeclIdentifierFromHintName(hintName), declCSharpDocument!.Text); 157.WithLambdaComparer(static (a, b) => a!.Text.ContentEquals(b!.Text)) 160CSharpSyntaxTree.ParseText(pair.Left!.Text, (CSharpParseOptions)pair.Right, cancellationToken: ct)) 460if (!a.csharpDocument.Text.ContentEquals(b.csharpDocument.Text)) 468(not null, not null) => a.declCSharpDocument.Text.ContentEquals(b.declCSharpDocument.Text), 498context.AddSource(hintName, csharpDocument.Text);
rzc (1)
GenerateCommand.cs (1)
276var generatedCode = result.CSharpDocument.Text.ToString();