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); 616return await provider.GetOptionsAsync(DocumentState, cancellationToken).ConfigureAwait(false); 620=> this.DocumentState.GetContentHashAsync(cancellationToken);
Workspace\Workspace.cs (4)
359relatedDocumentIdsAndStates.Add((addedDocumentId, relatedDocument.DocumentState)); 387relatedDocumentIdsAndStates[relatedDocumentId] = changedDocument.DocumentState; 1310newSolution = newSolution.WithDocumentContentsFrom(linkedDocumentId, newDocument.DocumentState); 1648new DocumentInfo(newDoc.DocumentState.Attributes, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));