14 references to Create
Microsoft.CodeAnalysis.CSharp.Features (1)
Copilot\CSharpImplementNotImplementedExceptionFixProvider.cs (1)
67
var lazy = AsyncLazy.
Create
(GetDocumentUpdater(context));
Microsoft.CodeAnalysis.Features (8)
EncapsulateField\EncapsulateFieldResult.cs (1)
16
private readonly AsyncLazy<Solution> _lazySolution = AsyncLazy.
Create
(getSolutionAsync);
Extensions\ExtensionFolder.cs (1)
126
AsyncLazy.
Create
(
ExtractMethod\ExtractMethodResult.cs (1)
37
_lazyData = AsyncLazy.
Create
(getDocumentAsync);
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
463
var 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)
25
var lazy = AsyncLazy.
Create
(static c => Task.FromResult(5));
266
var lazy = AsyncLazy.
Create
(static c => Task.FromResult(new object()));
291
? AsyncLazy.
Create
(asynchronousComputeFunction)