274 references to GetDocument
AnalyzerRunner (1)
IdeBenchmarks (3)
IdeCoreBenchmarks (2)
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.App.Analyzers.Test (3)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (36)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (7)
Microsoft.CodeAnalysis.EditorFeatures (11)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (25)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
Microsoft.CodeAnalysis.Features (10)
Microsoft.CodeAnalysis.Features.UnitTests (11)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (5)
Microsoft.CodeAnalysis.Workspaces (24)
Workspace\Solution\Project.cs (3)
705return this.Solution.AddDocument(id, name, syntaxRoot, folders, filePath, preservationMode: PreservationMode.PreserveIdentity).GetDocument(id)!;
714return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
723return this.Solution.AddDocument(id, name, text, folders, filePath).GetDocument(id)!;
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (66)
SolutionTests\SolutionTests.cs (50)
179Assert.Equal(name, newSolution1.GetDocument(documentId)!.Name);
199Assert.Equal(folders, newSolution1.GetDocument(documentId)!.Folders);
206Assert.Equal([], newSolution3.GetDocument(documentId)!.Folders);
294Assert.Equal(SourceCodeKind.Script, newSolution.GetDocument(documentId)!.SourceCodeKind);
310Assert.True(newSolution1.GetDocument(documentId)!.TryGetSyntaxRoot(out var actualRoot));
377Assert.True(newSolution1.GetDocument(documentId)!.TryGetText(out var actualText));
378Assert.True(newSolution1.GetDocument(documentId)!.TryGetTextVersion(out var actualVersion));
1015Assert.Equal("new text", newSolution1.GetDocument(documentId)!.GetTextSynchronously(CancellationToken.None).ToString());
2581var document = solution.GetDocument(did);
2584Assert.Equal(document, solution.GetDocument(did));
2598var document2 = solution.GetDocument(did2);
2601Assert.Equal(document2, solution.GetDocument(did2));
3142var document = sol.GetDocument(did);
3163var document = solution1.GetDocument(documentId);
3169var newText = solution2.GetDocument(documentId).GetTextAsync().Result.ToString();
3186var document = sol.GetDocument(did);
3194var doc2 = sol2.GetDocument(did);
3227var document = sol.GetDocument(did);
3270var oldDocument = solution.GetDocument(documentId);
3278var newDocument = solution.GetDocument(documentId);
3314var observedText2 = sol.GetDocument(did).GetTextAsync().Result;
3330var doc = sol.GetDocument(did);
3352var doc = sol.GetDocument(did);
3378var doc = sol.GetDocument(did);
3397var doc = sol.GetDocument(did);
3419var doc = sol.GetDocument(did);
3440var doc = sol.GetDocument(did);
3460var doc = sol.GetDocument(did);
3500var doc = sol.GetDocument(did);
3527var observedText = solution.GetDocument(documentId).GetTextAsync().Result;
3558var observedText = solution.GetDocument(documentId).GetTextAsync().Result;
3590var observedTree = solution.GetDocument(documentId).GetSyntaxRootAsync().Result;
3616var observedTree = solution.GetDocument(documentId).GetSyntaxRootAsync().Result;
3681var doc = sol.GetDocument(did);
3694var doc2 = doc.Project.Solution.WithDocumentSyntaxRoot(doc.Id, newRoot, PreservationMode.PreserveValue).GetDocument(doc.Id);
3775var document = sol.GetDocument(did);
3915var doc = solution.GetDocument(did);
4134var documentToFreezeChanged = solution.GetDocument(documentToFreezeOriginal.Id);
4179var documentToFreezeChanged = solution.GetDocument(documentToFreezeOriginal.Id);
4679var originalSyntaxTree = await solution.GetDocument(sourceDocumentId).GetSyntaxTreeAsync();
4690var newSyntaxTree = await solution.GetDocument(sourceDocumentId).GetSyntaxTreeAsync();
4723var syntaxTreeAfterAddingEditorConfig = await solution.GetDocument(sourceDocumentId).GetSyntaxTreeAsync();
4734var syntaxTreeAfterRemovingEditorConfig = await solution.GetDocument(sourceDocumentId).GetSyntaxTreeAsync();
4764var syntaxTreeBeforeEditorConfigChange = await solution.GetDocument(sourceDocumentId).GetSyntaxTreeAsync();
4777var syntaxTreeAfterEditorConfigChange = await solution.GetDocument(sourceDocumentId).GetSyntaxTreeAsync();
4842var originalSyntaxTree = await solution.GetDocument(sourceDocumentId).GetSyntaxTreeAsync();
4858var newSyntaxTree = await solution.GetDocument(sourceDocumentId).GetSyntaxTreeAsync();
5433var doc = solution.GetDocument(docInfo.Id);
5439var newDoc = doc.Project.Solution.WithDocumentSyntaxRoot(doc.Id, newRoot).GetDocument(doc.Id);
5472solution.GetDocument(documentId));
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.VisualStudio.LanguageServices (21)
Microsoft.VisualStudio.LanguageServices.LiveShare (4)
Microsoft.VisualStudio.LanguageServices.UnitTests (10)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Roslyn.VisualStudio.Next.UnitTests (2)