11 instantiations of CancellableLazy
Microsoft.CodeAnalysis.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
39_lazyTextChanges = new CancellableLazy<IList<TextChange>>(CreateTextChanges); 40_lazyNode = new CancellableLazy<SyntaxNode>(CreateFormattedRoot);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
37_lazyChanges = new CancellableLazy<IList<TextChange>>(CreateTextChanges); 38_lazyNode = new CancellableLazy<SyntaxNode>(CreateFormattedRoot);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CancellableLazy.cs (2)
13=> new(value); 16=> new(valueFactory);
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (1)
127=> new(staleCompilationWithGeneratedDocuments);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (4)
35private static readonly CancellableLazy<Compilation?> s_lazyNullCompilation = new CancellableLazy<Compilation?>((Compilation?)null); 148FinalCompilationTrackerState finalState => (new Lazy<Compilation>(() => finalState.CompilationWithoutGeneratedDocuments), new CancellableLazy<Compilation?>(finalState.FinalCompilationWithGeneratedDocuments)), 794var lazyCompilationWithGeneratedDocuments = new CancellableLazy<Compilation?>(cancellationToken => lazyCompilationWithoutGeneratedDocuments.Value); 820var compilationWithGeneratedDocuments = new CancellableLazy<Compilation?>(cancellationToken =>
12 references to CancellableLazy
Microsoft.CodeAnalysis.Workspaces (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
24private readonly CancellableLazy<IList<TextChange>> _lazyTextChanges; 25private readonly CancellableLazy<SyntaxNode> _lazyNode;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
20private readonly CancellableLazy<IList<TextChange>> _lazyChanges; 21private readonly CancellableLazy<SyntaxNode> _lazyNode;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CancellableLazy.cs (2)
12public static CancellableLazy<T> Create<T>(T value) 15public static CancellableLazy<T> Create<T>(Func<CancellationToken, T> valueFactory)
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (3)
75public readonly CancellableLazy<Compilation?> LazyStaleCompilationWithGeneratedDocuments; 89CancellableLazy<Compilation?> staleCompilationWithGeneratedDocuments, 126private static CancellableLazy<Compilation?> CreateLazyCompilation(Compilation? staleCompilationWithGeneratedDocuments)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (3)
35private static readonly CancellableLazy<Compilation?> s_lazyNullCompilation = new CancellableLazy<Compilation?>((Compilation?)null); 794var lazyCompilationWithGeneratedDocuments = new CancellableLazy<Compilation?>(cancellationToken => lazyCompilationWithoutGeneratedDocuments.Value); 820var compilationWithGeneratedDocuments = new CancellableLazy<Compilation?>(cancellationToken =>