13 references to DocumentState
Microsoft.CodeAnalysis.Workspaces (13)
Workspace\Solution\Document.cs (9)
56public SourceCodeKind SourceCodeKind => DocumentState.SourceCodeKind; 67DocumentState.SourceCodeKind != otherDocument.SourceCodeKind; 88if (!DocumentState.TryGetSyntaxTree(out syntaxTree)) 125=> DocumentState.TryGetTopLevelChangeTextVersion(out version); 143public bool SupportsSyntaxTree => DocumentState.SupportsSyntaxTree; 195return DocumentState.GetSyntaxTreeAsync(cancellationToken).AsTask().AsNullable(); 205return DocumentState.GetSyntaxTree(cancellationToken); 597return await provider.GetOptionsAsync(DocumentState, cancellationToken).ConfigureAwait(false); 601=> this.DocumentState.GetContentHashAsync(cancellationToken);
Workspace\Workspace.cs (4)
361relatedDocumentIdsAndStates.Add((addedDocumentId, relatedDocument.DocumentState)); 389relatedDocumentIdsAndStates[relatedDocumentId] = changedDocument.DocumentState; 1312newSolution = newSolution.WithDocumentContentsFrom(linkedDocumentId, newDocument.DocumentState, forceEvenIfTreesWouldDiffer: false); 1650new DocumentInfo(newDoc.DocumentState.Attributes, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));