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