1 override of Container
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
113public override SourceTextContainer Container
38 references to Container
Microsoft.CodeAnalysis.EditorFeatures (6)
Editor\TextEditApplication.cs (1)
34if (Workspace.TryGetWorkspace(oldText.Container, out var workspace))
Interactive\AbstractInteractiveWindowCommandCompletionProvider.cs (1)
29if (Workspace.TryGetWorkspace(sourceText.Container, out var workspace))
RenameTracking\RenameTrackingTaggerProvider.cs (3)
71textBuffer = text.Container.TryGetTextBuffer(); 77text.Container.GetType().FullName)); 108var textBuffer = text.Container.TryGetTextBuffer();
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
86var textBuffer = text.Container.GetTextBuffer();
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
117return _container ?? base.Container;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (2)
307Assert.True(_metadataAsSourceService.TryAddDocumentToWorkspace(file.FilePath, stringText.Container, out var _)); 309return stringText.Container.GetRelatedDocuments().Single();
Preview\PreviewWorkspaceTests.cs (1)
100var sourceTextContainer = SourceText.From("Text").Container;
TextEditor\TryGetDocumentTests.cs (2)
46Assert.True(container == newSourceText.Container); 61Assert.Same(text.Container, container);
Microsoft.CodeAnalysis.Features (3)
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsRefactoringProvider.cs (1)
33if (!pasteTrackingService.TryGetPastedTextSpan(sourceText.Container, out var textSpan))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
341loader: TextLoader.From(assemblyInfoSourceText.Container, VersionStamp.Default), 352loader: TextLoader.From(emptySourceText.Container, VersionStamp.Default),
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Workspaces\LspWorkspaceManager.cs (2)
136workspace.TryOnDocumentOpenedAsync(documentId, documentText.Container, isCurrentContext: false, cancellationToken)).ConfigureAwait(false); 464documentId, sourceText.Container, isCurrentContext: false, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (8)
Workspace\AdhocWorkspace.cs (3)
155this.OnDocumentOpened(documentId, text.Container, activate); 183this.OnAdditionalDocumentOpened(documentId, text.Container, activate); 211this.OnAnalyzerConfigDocumentOpened(documentId, text.Container, activate);
Workspace\Solution\Document.cs (1)
480var container = text.Container;
Workspace\TextExtensions.cs (4)
20if (Workspace.TryGetWorkspace(text.Container, out var workspace)) 22var documentId = workspace.GetDocumentIdInCurrentContext(text.Container); 60if (Workspace.TryGetWorkspace(text.Container, out var workspace)) 63var id = workspace.GetDocumentIdInCurrentContext(text.Container);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\SolutionWithSourceGeneratorTests.cs (5)
593var differentOpenTextContainer = SourceText.From("// Open Text").Container; 617var differentOpenTextContainer = SourceText.From("// StaticContent", Encoding.UTF8).Container; 637var differentOpenTextContainer = SourceText.From("// Open Text").Container; 668var differentOpenTextContainer = SourceText.From("// Open Text").Container; 695var differentOpenTextContainer = SourceText.From("// Open Text").Container;
Microsoft.VisualStudio.LanguageServices (5)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1176var textBuffer = document.GetTextSynchronously(CancellationToken.None).Container.TryGetTextBuffer();
Venus\ContainedLanguageCodeSupport.cs (1)
325if (CodeAnalysis.Workspace.TryGetWorkspace(document.GetTextSynchronously(cancellationToken).Container, out var workspace))
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (1)
71var container = document.GetTextSynchronously(CancellationToken.None).Container;
Workspace\VisualStudioDocumentNavigationService.cs (1)
280text.Container.GetTextBuffer(), vsTextSpan, cancellationToken).ConfigureAwait(false);
Workspace\VisualStudioFormattingRuleFactoryServiceFactory.cs (1)
44var textContainer = document.Text.Container;
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\AbstractCodeModelService.cs (1)
81var textBuffer = text.Container.TryGetTextBuffer();
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
482var textContainer = sourceText.Container;
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlProjectService.cs (1)
176if (!hasText || text?.Container.TryGetTextBuffer() == null)