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)
46Contract.ThrowIfFalse(_options is null == _treeSource is null); 82public ValueSource<TreeAndVersion>? TreeSource => _treeSource; 84[MemberNotNullWhen(true, nameof(_treeSource))] 89=> _treeSource != null; 282return oldState._treeSource != _treeSource 357_treeSource.TryGetValue(out var existingTreeAndVersion)) 421_treeSource); 468newTreeSource = CreateLazyIncrementallyParsedTree(_treeSource, newTextSource, LoadTextOptions); 560RoslynDebug.Assert(_treeSource != null); 567if (!_treeSource.TryGetValue(out var oldTreeAndVersion) || !oldTreeAndVersion!.Tree.TryGetRoot(out var oldRoot)) 592if (_treeSource != null && _treeSource.TryGetValue(out var treeAndVersion) && treeAndVersion != null) 603if (_treeSource != null && _treeSource.TryGetValue(out var treeAndVersion) && treeAndVersion != null) 617RoslynDebug.Assert(_treeSource != null); 619var treeAndVersion = await _treeSource.GetValueAsync(cancellationToken).ConfigureAwait(false); 629RoslynDebug.Assert(_treeSource != null); 631var treeAndVersion = _treeSource.GetValue(cancellationToken); 640if (_treeSource != null && _treeSource.TryGetValue(out var treeAndVersion) && treeAndVersion != null) 654if (_treeSource == null) 659if (_treeSource.TryGetValue(out var treeAndVersion) && treeAndVersion != null) 664treeAndVersion = await _treeSource.GetValueAsync(cancellationToken).ConfigureAwait(false);