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