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