1 write to State
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocument.cs (1)
31
State
= state;
36 references to State
Microsoft.CodeAnalysis.Workspaces (36)
Classification\SemanticClassificationCacheUtilities.cs (1)
29
var checksums = await document.
State
.GetStateChecksumsAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
149
(DocumentState)document.
State
,
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (3)
39
=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.
State
, cancellationToken);
45
=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.
State
, cancellationToken);
51
=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.
State
, loadOnly, cancellationToken);
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (3)
47
=> GetRequiredIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.
State
, cancellationToken);
53
=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.
State
, cancellationToken);
59
=> GetIndexAsync(SolutionKey.ToSolutionKey(document.Project.Solution), document.Project.State, (DocumentState)document.
State
, loadOnly, cancellationToken);
Workspace\Host\DocumentService\Extensions.cs (3)
14
=> document?.
State
.CanApplyChange() ?? false;
20
=> document?.
State
.SupportsDiagnostics() ?? false;
26
=> IsRazorDocument(document.
State
);
Workspace\Host\PersistentStorage\DocumentKey.cs (1)
34
=> ToDocumentKey(ProjectKey.ToProjectKey(document.Project), document.
State
);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
484
var attributes = w.CurrentSolution.GetRequiredDocument(documentId).
State
.Attributes;
Workspace\Solution\Document.cs (1)
51
internal DocumentState DocumentState => (DocumentState)
State
;
Workspace\Solution\SourceGeneratedDocument.cs (1)
20
private new SourceGeneratedDocumentState State => (SourceGeneratedDocumentState)base.
State
;
Workspace\Solution\TextDocument.cs (16)
39
public DocumentId Id =>
State
.Id;
44
public string? FilePath =>
State
.FilePath;
49
public string Name =>
State
.Name;
54
public IReadOnlyList<string> Folders =>
State
.Folders;
59
internal IDocumentServiceProvider DocumentServiceProvider =>
State
.DocumentServiceProvider;
65
=>
State
.TryGetText(out text);
71
=>
State
.TryGetTextVersion(out version);
80
=>
State
.GetTextAsync(cancellationToken);
88
=>
State
.GetTextSynchronously(cancellationToken);
94
=>
State
.GetTextVersionAsync(cancellationToken);
102
=>
State
.GetTextVersionSynchronously(cancellationToken);
108
=>
State
.GetTopLevelChangeTextVersionAsync(cancellationToken);
114
=>
State
.HasInfoChanged(otherTextDocument.
State
);
120
=>
State
.HasTextChanged(otherTextDocument.
State
, ignoreUnchangeableDocument);
Workspace\Workspace.cs (4)
1112
var oldAttributes = oldSolution.GetDocument(documentId)!.
State
.Attributes;
1650
new DocumentInfo(newDoc.DocumentState.Attributes, loader: null, documentServiceProvider: newDoc.
State
.DocumentServiceProvider));
2054
isGenerated: doc.
State
.Attributes.IsGenerated)
2055
.WithDesignTimeOnly(doc.
State
.Attributes.DesignTimeOnly)
Workspace\Workspace_Editor.cs (1)
393
var oldDocumentState = oldDocument.
State
;