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)
22internal partial class DocumentState : TextDocumentState
61 references to TextDocumentState
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\Utilities\Extensions.cs (1)
81public static bool SupportsEditAndContinue(this TextDocumentState textDocumentState)
Workspace\CompileTimeSolutionProvider.cs (1)
87private static bool IsRazorAnalyzerConfig(TextDocumentState documentState)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.SolutionCreator.cs (1)
431CancellationToken cancellationToken) where TDocumentState : TextDocumentState
Host\SolutionAssetCache.cs (1)
193void AddAll<TState>(TextDocumentStates<TState> states) where TState : TextDocumentState
Microsoft.CodeAnalysis.Workspaces (56)
Serialization\SerializableSourceText.cs (1)
119TextDocumentState 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)
399protected override TextDocumentState UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes) 431protected override TextDocumentState UpdateDocumentServiceProvider(IDocumentServiceProvider? newProvider) 453protected override TextDocumentState UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\ProjectState.cs (12)
119where TDocumentState : TextDocumentState 240ImmutableArray<TextDocumentState> newDocuments, 259VersionStamp oldVersion, ImmutableArray<TextDocumentState> newDocuments, CancellationToken cancellationToken) 262foreach (var newDocument in newDocuments) 307where TDocumentState : TextDocumentState 992oldDocuments.CastArray<TextDocumentState>(), 993newDocuments.CastArray<TextDocumentState>(), 1017oldDocuments.CastArray<TextDocumentState>(), 1018newDocuments.CastArray<TextDocumentState>(), 1053ImmutableArray<TextDocumentState> oldDocuments, 1054ImmutableArray<TextDocumentState> newDocuments, 1067foreach (var oldDocument in oldDocuments)
Workspace\Solution\SolutionCompilationState.cs (7)
614where TDocumentState : TextDocumentState 834where TDocumentState : TextDocumentState 870where TDocumentState : TextDocumentState 904where TDocumentState : TextDocumentState 1754where TDocumentState : TextDocumentState 1776where T : TextDocumentState 1798where T : TextDocumentState
Workspace\Solution\SourceGeneratedDocumentState.cs (3)
162protected override TextDocumentState UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes) 165protected override TextDocumentState UpdateDocumentServiceProvider(IDocumentServiceProvider? newProvider) 168protected override TextDocumentState UpdateText(ITextAndVersionSource newTextSource, PreservationMode mode, bool incremental)
Workspace\Solution\StateChecksums.cs (1)
513TextDocumentState state,
Workspace\Solution\TextDocument.cs (2)
16internal TextDocumentState State { get; } 24internal 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) 223public bool HasTextChanged(TextDocumentState oldState, bool ignoreUnchangeableDocument) 233public bool HasInfoChanged(TextDocumentState oldState)
Workspace\Solution\TextDocumentStates.cs (2)
34/// Holds on a <see cref="DocumentId"/> to <see cref="TextDocumentState"/> map and an ordering. 37where TState : TextDocumentState
Workspace\Workspace_Editor.cs (1)
394var oldDocumentState = oldDocument.State;
Microsoft.VisualStudio.LanguageServices (1)
Workspace\VisualStudioWorkspaceUtilities.cs (1)
25[NotNullWhen(true)] TextDocumentState? document,