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); 561return await provider.GetOptionsAsync(DocumentState, cancellationToken).ConfigureAwait(false); 565=> this.DocumentState.GetContentHashAsync(cancellationToken);
Workspace\Workspace.cs (4)
351relatedDocumentIdsAndStates.Add((addedDocumentId, relatedDocument.DocumentState)); 379relatedDocumentIdsAndStates[relatedDocumentId] = changedDocument.DocumentState; 1268newSolution = newSolution.WithDocumentContentsFrom(linkedDocumentId, newDocument.DocumentState, forceEvenIfTreesWouldDiffer: false); 1606new DocumentInfo(newDoc.DocumentState.Attributes, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));