14 references to Create
Microsoft.CodeAnalysis.CSharp.Features (1)
Copilot\CSharpImplementNotImplementedExceptionFixProvider.cs (1)
67var lazy = AsyncLazy.Create(GetDocumentUpdater(context));
Microsoft.CodeAnalysis.Features (8)
EncapsulateField\EncapsulateFieldResult.cs (1)
16private readonly AsyncLazy<Solution> _lazySolution = AsyncLazy.Create(getSolutionAsync);
Extensions\ExtensionFolder.cs (1)
126AsyncLazy.Create(
ExtractMethod\ExtractMethodResult.cs (1)
37_lazyData = AsyncLazy.Create(getDocumentAsync);
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
463var lazySemanticModel = AsyncLazy.Create(
Wrapping\BinaryExpression\BinaryExpressionCodeActionComputer.cs (1)
65_smartIndentTrivia = AsyncLazy.Create(async cancellationToken => new SyntaxTriviaList(generator.Whitespace(
Wrapping\ChainedExpression\ChainedExpressionCodeActionComputer.cs (1)
87_smartIndentTrivia = AsyncLazy.Create(async cancellationToken => new SyntaxTriviaList(generator.Whitespace(
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (2)
91_singleIndentationTrivia = AsyncLazy.Create(async cancellationToken => generator.Whitespace(await GetSingleIndentationAsync(cancellationToken).ConfigureAwait(false))); 92_braceIndentationTrivia = AsyncLazy.Create(async cancellationToken => generator.Whitespace(await GetBraceTokenIndentationAsync(cancellationToken).ConfigureAwait(false)));
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Diagnostics\DiagnosticSources\AbstractWorkspaceDocumentDiagnosticSource.cs (1)
70_ => AsyncLazy.Create(
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
126_ => AsyncLazy.Create(
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
UtilityTest\AsyncLazyTests.cs (3)
25var lazy = AsyncLazy.Create(static c => Task.FromResult(5)); 266var lazy = AsyncLazy.Create(static c => Task.FromResult(new object())); 291? AsyncLazy.Create(asynchronousComputeFunction)