1 write to TreeSource
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentState.cs (1)
51TreeSource = treeSource;
25 references to TreeSource
Microsoft.CodeAnalysis.Workspaces (25)
Workspace\Solution\DocumentState.cs (24)
47Contract.ThrowIfFalse(ParseOptions is null == TreeSource is null); 91[MemberNotNullWhen(true, nameof(TreeSource))] 94=> TreeSource != null; 295return oldState.TreeSource != TreeSource 349TreeSource.TryGetValue(out var existingTreeAndVersion)) 418newTreeSource = TreeSource; 439TreeSource); 463newTreeSource = CreateLazyIncrementallyParsedTree(TreeSource, newTextSource, LoadTextOptions); 554RoslynDebug.Assert(TreeSource != null); 561if (!TreeSource.TryGetValue(out var oldTreeAndVersion) || !oldTreeAndVersion!.Tree.TryGetRoot(out var oldRoot)) 576if (TreeSource != null && TreeSource.TryGetValue(out var treeAndVersion) && treeAndVersion != null) 587if (TreeSource != null && TreeSource.TryGetValue(out var treeAndVersion) && treeAndVersion != null) 601RoslynDebug.Assert(TreeSource != null); 603var treeAndVersion = await TreeSource.GetValueAsync(cancellationToken).ConfigureAwait(false); 613RoslynDebug.Assert(TreeSource != null); 615var treeAndVersion = TreeSource.GetValue(cancellationToken); 624if (TreeSource != null && TreeSource.TryGetValue(out var treeAndVersion) && treeAndVersion != null) 638if (TreeSource == null) 643if (TreeSource.TryGetValue(out var treeAndVersion) && treeAndVersion != null) 648treeAndVersion = await TreeSource.GetValueAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
187this.TreeSource!,