3 writes to _treeSource
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\DocumentState.cs (3)
50
_treeSource
= treeSource;
68
_treeSource
= null;
73
_treeSource
= CreateLazyFullyParsedTree(
24 references to _treeSource
Microsoft.CodeAnalysis.Workspaces (24)
Workspace\Solution\DocumentState.cs (24)
46
Contract.ThrowIfFalse(_options is null ==
_treeSource
is null);
82
public ValueSource<TreeAndVersion>? TreeSource =>
_treeSource
;
84
[MemberNotNullWhen(true, nameof(
_treeSource
))]
89
=>
_treeSource
!= null;
282
return oldState.
_treeSource
!=
_treeSource
357
_treeSource
.TryGetValue(out var existingTreeAndVersion))
421
_treeSource
);
468
newTreeSource = CreateLazyIncrementallyParsedTree(
_treeSource
, newTextSource, LoadTextOptions);
560
RoslynDebug.Assert(
_treeSource
!= null);
567
if (!
_treeSource
.TryGetValue(out var oldTreeAndVersion) || !oldTreeAndVersion!.Tree.TryGetRoot(out var oldRoot))
592
if (
_treeSource
!= null &&
_treeSource
.TryGetValue(out var treeAndVersion) && treeAndVersion != null)
603
if (
_treeSource
!= null &&
_treeSource
.TryGetValue(out var treeAndVersion) && treeAndVersion != null)
617
RoslynDebug.Assert(
_treeSource
!= null);
619
var treeAndVersion = await
_treeSource
.GetValueAsync(cancellationToken).ConfigureAwait(false);
629
RoslynDebug.Assert(
_treeSource
!= null);
631
var treeAndVersion =
_treeSource
.GetValue(cancellationToken);
640
if (
_treeSource
!= null &&
_treeSource
.TryGetValue(out var treeAndVersion) && treeAndVersion != null)
654
if (
_treeSource
== null)
659
if (
_treeSource
.TryGetValue(out var treeAndVersion) && treeAndVersion != null)
664
treeAndVersion = await
_treeSource
.GetValueAsync(cancellationToken).ConfigureAwait(false);