13 references to TryGetTextVersion
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Document.cs (1)
111
if (!this.
TryGetTextVersion
(out var textVersion))
Workspace\Workspace_Editor.cs (1)
397
oldDocument.
TryGetTextVersion
(out var version))
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
SolutionTests\SolutionTests.cs (3)
378
Assert.True(newSolution1.GetDocument(documentId)!.
TryGetTextVersion
(out var actualVersion));
946
Assert.True(newSolution1.GetAdditionalDocument(documentId)!.
TryGetTextVersion
(out var actualVersion));
992
Assert.True(newSolution1.GetAnalyzerConfigDocument(documentId)!.
TryGetTextVersion
(out var actualVersion));
WorkspaceTests\AdhocWorkspaceTests.cs (6)
233
Assert.True(doc.
TryGetTextVersion
(out var currentVersion));
267
Assert.True(doc.
TryGetTextVersion
(out var currentVersion));
306
Assert.True(doc.
TryGetTextVersion
(out var currentVersion));
335
Assert.False(doc.
TryGetTextVersion
(out var currentVersion));
340
Assert.True(doc.
TryGetTextVersion
(out currentVersion));
354
Assert.True(newDoc.
TryGetTextVersion
(out currentVersion));
Microsoft.VisualStudio.LanguageServices (2)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
115
if (oldDocument.
TryGetTextVersion
(out var oldTextVersion)
116
&& newDocument.
TryGetTextVersion
(out var newTextVersion)