18 references to DocumentState
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\ActiveStatementTrackingService.cs (1)
164
if (!designTimeDocument.
DocumentState
.SupportsEditAndContinue())
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
93
_documentsWithChangedLoaderByPath.Add(oldDocument.FilePath, (oldDocument.
DocumentState
, oldSolutionVersion));
Microsoft.CodeAnalysis.Features (5)
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
82
Contract.ThrowIfNull(document.
DocumentState
.ParseOptions);
EditAndContinue\ActiveStatementsMap.cs (1)
168
var oldTree = await oldDocument.
DocumentState
.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\CommittedSolution.cs (1)
217
if (!document.
DocumentState
.SupportsEditAndContinue())
EditAndContinue\DebuggingSession.cs (1)
467
if (!document.
DocumentState
.SupportsEditAndContinue())
Workspace\CompileTimeSolutionProvider.cs (1)
178
if (!IsRazorDesignTimeDocument(designTimeDocument.
DocumentState
))
Microsoft.CodeAnalysis.Workspaces (11)
Workspace\Solution\Document.cs (8)
51
public SourceCodeKind SourceCodeKind =>
DocumentState
.SourceCodeKind;
62
DocumentState
.SourceCodeKind != otherDocument.SourceCodeKind;
83
if (!
DocumentState
.TryGetSyntaxTree(out syntaxTree))
120
=>
DocumentState
.TryGetTopLevelChangeTextVersion(out version);
138
public bool SupportsSyntaxTree =>
DocumentState
.SupportsSyntaxTree;
195
return
DocumentState
.GetSyntaxTreeAsync(cancellationToken).AsTask()!;
205
return
DocumentState
.GetSyntaxTree(cancellationToken);
504
return await provider.GetOptionsAsync(
DocumentState
, cancellationToken).ConfigureAwait(false);
Workspace\Workspace.cs (3)
295
return solution.WithDocumentContentsFrom(addedDocumentId, relatedDocument.
DocumentState
);
312
solution = solution.WithDocumentContentsFrom(relatedDocumentId, changedDocument.
DocumentState
);
1059
? newSolution.WithDocumentContentsFrom(linkedDocumentId, newDocument.
DocumentState
)