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