1 type derived from LazyContent
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Intermediate\LazyContent.cs (1)
25
private sealed class LazyContentImpl<T>(T arg, Func<T, string> contentFactory) :
LazyContent
14 references to LazyContent
Microsoft.AspNetCore.Razor.Language.UnitTests (7)
Intermediate\LazyContentTests.cs (7)
16
Assert.Throws<ArgumentNullException>(() =>
LazyContent
.Create("x", null!));
24
var
lazy =
LazyContent
.Create(args, static arg => (arg.x + arg.y).ToString());
41
var
lazy =
LazyContent
.Create(text, arg =>
64
var
lazy =
LazyContent
.Create("thread", arg =>
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\Intermediate\CSharpIntermediateToken.cs (1)
13
internal CSharpIntermediateToken(
LazyContent
content, SourceSpan? source)
Language\Intermediate\HtmlIntermediateToken.cs (1)
13
internal HtmlIntermediateToken(
LazyContent
content, SourceSpan? source)
Language\Intermediate\IntermediateNodeFactory.cs (2)
14
=> new(
LazyContent
.Create(arg, contentFactory), source);
20
=> new(
LazyContent
.Create(arg, contentFactory), source);
Language\Intermediate\IntermediateToken.cs (2)
13
=> _content is
LazyContent
lazy ? lazy.Value : (string)_content;
28
private protected IntermediateToken(
LazyContent
content, SourceSpan? source)
Language\Intermediate\LazyContent.cs (1)
18
public static
LazyContent
Create<T>(T arg, Func<T, string> contentFactory)