1 override of Container
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
114public override SourceTextContainer Container
27 references to Container
Microsoft.CodeAnalysis.EditorFeatures (5)
Editor\TextEditApplication.cs (1)
34if (Workspace.TryGetWorkspace(oldText.Container, out var workspace))
RenameTracking\RenameTrackingTaggerProvider.cs (3)
76textBuffer = text.Container.TryGetTextBuffer(); 82text.Container.GetType().FullName)); 114var textBuffer = text.Container.TryGetTextBuffer();
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
91var textBuffer = text.Container.GetTextBuffer();
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
118return _container ?? base.Container;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Preview\PreviewWorkspaceTests.cs (1)
100var sourceTextContainer = SourceText.From("Text").Container;
TextEditor\TryGetDocumentTests.cs (2)
45Assert.True(container == newSourceText.Container); 60Assert.Same(text.Container, container);
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
79loader: TextLoader.From(assemblyInfoSourceText.Container, VersionStamp.Default),
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Workspaces\LspWorkspaceManager.cs (1)
180workspace.TryOnDocumentOpenedAsync(documentId, documentText.Container, isCurrentContext: false, cancellationToken)).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Solution\Document.cs (1)
443var container = text.Container;
Workspace\TextExtensions.cs (4)
21if (Workspace.TryGetWorkspace(text.Container, out var workspace)) 23var documentId = workspace.GetDocumentIdInCurrentContext(text.Container); 61if (Workspace.TryGetWorkspace(text.Container, out var workspace)) 64var id = workspace.GetDocumentIdInCurrentContext(text.Container);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionWithSourceGeneratorTests.cs (5)
595var differentOpenTextContainer = SourceText.From("// Open Text").Container; 619var differentOpenTextContainer = SourceText.From("// StaticContent", Encoding.UTF8).Container; 639var differentOpenTextContainer = SourceText.From("// Open Text").Container; 670var differentOpenTextContainer = SourceText.From("// Open Text").Container; 697var differentOpenTextContainer = SourceText.From("// Open Text").Container;
Microsoft.VisualStudio.LanguageServices (2)
Venus\ContainedLanguageCodeSupport.cs (1)
326if (CodeAnalysis.Workspace.TryGetWorkspace(document.GetTextSynchronously(cancellationToken).Container, out var workspace))
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (1)
74var container = document.GetTextSynchronously(CancellationToken.None).Container;
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
482var textContainer = sourceText.Container;
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
ProjectSystemShim\VisualStudioProjectTests\WorkspaceChangedEventTests.vb (1)
130project.AddSourceTextContainer(SourceText.From("// Test").Container, "Z:\Test.cs")
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Venus\ContainedLanguageStaticEventBinding.vb (2)
72Dim textBuffer = targetDocument.GetTextSynchronously(cancellationToken).Container.TryGetTextBuffer() 100Dim textBuffer = targetDocument.GetTextSynchronously(cancellationToken).Container.TryGetTextBuffer()