18 references to DocumentState
Microsoft.CodeAnalysis.CSharp.Features (1)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
84
var parseOptions = document.
DocumentState
.ParseOptions!;
Microsoft.CodeAnalysis.Features (5)
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
91
Contract.ThrowIfNull(document.
DocumentState
.ParseOptions);
EditAndContinue\ActiveStatementsMap.cs (1)
168
var oldTree = await oldDocument.
DocumentState
.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\CommittedSolution.cs (1)
226
if (document.
DocumentState
.IgnoreForEditAndContinue())
EditAndContinue\DebuggingSession.cs (1)
471
if (!document.
DocumentState
.SupportsEditAndContinue())
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
102
_documentsWithChangedLoaderByPath.Add(oldDocument.FilePath, (oldDocument.
DocumentState
, oldSolutionVersion));
Microsoft.CodeAnalysis.Workspaces (12)
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 await
DocumentState
.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
204
return
DocumentState
.GetSyntaxTree(cancellationToken);
616
return await provider.GetOptionsAsync(
DocumentState
, cancellationToken).ConfigureAwait(false);
620
=> this.
DocumentState
.GetContentHashAsync(cancellationToken);
Workspace\Workspace.cs (3)
360
relatedDocumentIdsAndStates.Add((addedDocumentId, relatedDocument.
DocumentState
));
1308
newSolution = newSolution.WithDocumentContentsFrom(linkedDocumentId, newDocument.
DocumentState
);
1644
new DocumentInfo(newDoc.
DocumentState
.Attributes, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));