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