1 type derived from LazyContent
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Intermediate\LazyContent.cs (1)
25private 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)
16Assert.Throws<ArgumentNullException>(() => LazyContent.Create("x", null!)); 24var lazy = LazyContent.Create(args, static arg => (arg.x + arg.y).ToString()); 41var lazy = LazyContent.Create(text, arg => 64var lazy = LazyContent.Create("thread", arg =>
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\Intermediate\CSharpIntermediateToken.cs (1)
13internal CSharpIntermediateToken(LazyContent content, SourceSpan? source)
Language\Intermediate\HtmlIntermediateToken.cs (1)
13internal 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; 28private protected IntermediateToken(LazyContent content, SourceSpan? source)
Language\Intermediate\LazyContent.cs (1)
18public static LazyContent Create<T>(T arg, Func<T, string> contentFactory)