3 types derived from TextDocumentState
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\AdditionalDocumentState.cs (1)
11
internal sealed class AdditionalDocumentState :
TextDocumentState
Workspace\Solution\AnalyzerConfigDocumentState.cs (1)
13
internal sealed class AnalyzerConfigDocumentState :
TextDocumentState
Workspace\Solution\DocumentState.cs (1)
24
internal partial class DocumentState :
TextDocumentState
55 references to TextDocumentState
Microsoft.CodeAnalysis.Workspaces (55)
Serialization\SerializableSourceText.cs (1)
121
TextDocumentState
state, CancellationToken cancellationToken)
Workspace\Host\DocumentService\Extensions.cs (3)
16
public static bool CanApplyChange([NotNullWhen(returnValue: true)] this
TextDocumentState
? document)
22
public static bool SupportsDiagnostics([NotNullWhen(returnValue: true)] this
TextDocumentState
? document)
28
public static bool IsRazorDocument(this
TextDocumentState
documentState)
Workspace\Host\PersistentStorage\DocumentKey.cs (1)
36
public static DocumentKey ToDocumentKey(ProjectKey projectKey,
TextDocumentState
state)
Workspace\Solution\AdditionalDocument.cs (1)
12
internal AdditionalDocument(Project project,
TextDocumentState
state)
Workspace\Solution\AdditionalDocumentState.cs (3)
34
protected override
TextDocumentState
UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes)
42
protected override
TextDocumentState
UpdateDocumentServiceProvider(IDocumentServiceProvider? newProvider)
59
protected override
TextDocumentState
UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\AnalyzerConfigDocumentState.cs (3)
40
protected override
TextDocumentState
UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes)
50
protected override
TextDocumentState
UpdateDocumentServiceProvider(IDocumentServiceProvider? newProvider)
69
protected override
TextDocumentState
UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\ChecksumCollection.cs (1)
62
CancellationToken cancellationToken) where TState :
TextDocumentState
Workspace\Solution\DocumentState.cs (3)
401
protected override
TextDocumentState
UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes)
433
protected override
TextDocumentState
UpdateDocumentServiceProvider(IDocumentServiceProvider? newProvider)
455
protected override
TextDocumentState
UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\ProjectState.cs (12)
130
where TDocumentState :
TextDocumentState
250
ImmutableArray<
TextDocumentState
> newDocuments,
269
VersionStamp oldVersion, ImmutableArray<
TextDocumentState
> newDocuments, CancellationToken cancellationToken)
272
foreach (
var
newDocument in newDocuments)
317
where TDocumentState :
TextDocumentState
1000
oldDocuments.CastArray<
TextDocumentState
>(),
1001
newDocuments.CastArray<
TextDocumentState
>(),
1025
oldDocuments.CastArray<
TextDocumentState
>(),
1026
newDocuments.CastArray<
TextDocumentState
>(),
1061
ImmutableArray<
TextDocumentState
> oldDocuments,
1062
ImmutableArray<
TextDocumentState
> newDocuments,
1075
foreach (
var
oldDocument in oldDocuments)
Workspace\Solution\SolutionCompilationState.cs (7)
614
where TDocumentState :
TextDocumentState
799
where TDocumentState :
TextDocumentState
833
where TDocumentState :
TextDocumentState
867
where TDocumentState :
TextDocumentState
1660
where TDocumentState :
TextDocumentState
1682
where T :
TextDocumentState
1704
where T :
TextDocumentState
Workspace\Solution\SourceGeneratedDocumentState.cs (3)
130
protected override
TextDocumentState
UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes)
133
protected override
TextDocumentState
UpdateDocumentServiceProvider(IDocumentServiceProvider? newProvider)
136
protected override
TextDocumentState
UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\TextDocument.cs (2)
17
internal
TextDocumentState
State { get; }
25
internal TextDocument(Project project,
TextDocumentState
state, TextDocumentKind kind)
Workspace\Solution\TextDocumentState.cs (12)
53
public
TextDocumentState
WithDocumentInfo(DocumentInfo info)
58
public
TextDocumentState
WithAttributes(DocumentInfo.DocumentAttributes newAttributes)
61
public
TextDocumentState
WithDocumentServiceProvider(IDocumentServiceProvider? newProvider)
64
public
TextDocumentState
WithTextLoader(TextLoader? loader, PreservationMode mode)
67
protected abstract
TextDocumentState
UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes);
68
protected abstract
TextDocumentState
UpdateDocumentServiceProvider(IDocumentServiceProvider? newProvider);
69
protected abstract
TextDocumentState
UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental);
138
public
TextDocumentState
UpdateText(TextAndVersion newTextAndVersion, PreservationMode mode)
145
public
TextDocumentState
UpdateText(SourceText newText, PreservationMode mode)
153
public
TextDocumentState
UpdateText(TextLoader? loader, PreservationMode mode)
217
public bool HasTextChanged(
TextDocumentState
oldState, bool ignoreUnchangeableDocument)
227
public bool HasInfoChanged(
TextDocumentState
oldState)
Workspace\Solution\TextDocumentStates.cs (2)
33
/// Holds on a <see cref="DocumentId"/> to <see cref="
TextDocumentState
"/> map and an ordering.
36
where TState :
TextDocumentState
Workspace\Workspace_Editor.cs (1)
393
var
oldDocumentState = oldDocument.State;