13 references to DocumentState
Microsoft.CodeAnalysis.Workspaces (13)
Workspace\Solution\Document.cs (9)
55public SourceCodeKind SourceCodeKind => DocumentState.SourceCodeKind; 66DocumentState.SourceCodeKind != otherDocument.SourceCodeKind; 87if (!DocumentState.TryGetSyntaxTree(out syntaxTree)) 124=> DocumentState.TryGetTopLevelChangeTextVersion(out version); 142public bool SupportsSyntaxTree => DocumentState.SupportsSyntaxTree; 194return DocumentState.GetSyntaxTreeAsync(cancellationToken).AsTask().AsNullable(); 204return DocumentState.GetSyntaxTree(cancellationToken); 596return await provider.GetOptionsAsync(DocumentState, cancellationToken).ConfigureAwait(false); 600=> this.DocumentState.GetContentHashAsync(cancellationToken);
Workspace\Workspace.cs (4)
362relatedDocumentIdsAndStates.Add((addedDocumentId, relatedDocument.DocumentState)); 390relatedDocumentIdsAndStates[relatedDocumentId] = changedDocument.DocumentState; 1313newSolution = newSolution.WithDocumentContentsFrom(linkedDocumentId, newDocument.DocumentState, forceEvenIfTreesWouldDiffer: false); 1651new DocumentInfo(newDoc.DocumentState.Attributes, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));