75 references to Create
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SymbolEditorTests.cs (1)
37DocumentInfo.Create(
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Rename\RenamerTests.cs (1)
225var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
258DocumentInfo.Create( 336DocumentInfo.Create(
TextEditor\OpenDocumentTests.cs (1)
43workspace.AddDocument(DocumentInfo.Create(documentId, "Foo.cs", filePath: FilePath));
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
src\Tools\ExternalAccess\Razor\Shared\Testing\RazorTestLanguageServerFactory.cs (1)
64return DocumentInfo.Create(id, name, folders, sourceCodeKind, loader, filePath, isGenerated)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
src\Tools\ExternalAccess\Razor\Shared\Testing\RazorTestLanguageServerFactory.cs (1)
64return DocumentInfo.Create(id, name, folders, sourceCodeKind, loader, filePath, isGenerated)
Microsoft.CodeAnalysis.Features (4)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
331var documentInfo = DocumentInfo.Create(
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
350DocumentInfo.Create(
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
76var assemblyInfoDocument = DocumentInfo.Create(
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
358var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
51AddDocument(DocumentInfo.Create(
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
347var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
ExternalAccess\Razor\FormatNewFileHandler.cs (1)
54DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces (7)
Workspace\AdhocWorkspace.cs (1)
128return AddDocument(DocumentInfo.Create(id, name, loader: loader));
Workspace\CommandLineProject.cs (1)
163var doc = DocumentInfo.Create(
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
96var documentInfo = DocumentInfo.Create( 146var documentInfo = DocumentInfo.Create(
Workspace\Solution\Solution.cs (3)
993=> AddDocument(DocumentInfo.Create( 1019return AddDocument(DocumentInfo.Create( 1114return DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestHostDocument.cs (1)
205return DocumentInfo.Create(Id, Name, Folders, SourceCodeKind, Loader, FilePath, isGenerated: false)
Microsoft.CodeAnalysis.Workspaces.UnitTests (47)
SolutionTests\DocumentInfoTests.cs (6)
24Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(id: null, "doc")); 25Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, name: null)); 55var info = DocumentInfo.Create( 77var info2 = DocumentInfo.Create(documentId, "doc"); 96var info = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc_name", filePath: path, sourceCodeKind: kind); 106var instance = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc");
SolutionTests\ProjectInfoTests.cs (4)
38var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "doc"); 74var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 93var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 183var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "doc");
SolutionTests\SolutionTests.cs (25)
1110var newDocumentInfo3 = DocumentInfo.Create( 1129var newAddDocumentInfo3 = DocumentInfo.Create( 1148var newConfigDocumentInfo3 = DocumentInfo.Create( 1626solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path)); 2609var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2610var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2633var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2634var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2660var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2661var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2685var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2686var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2706var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2707var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2728var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2747var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2766var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 4700DocumentInfo.Create( 4733DocumentInfo.Create( 4774DocumentInfo.Create( 4822DocumentInfo.Create( 4868DocumentInfo.Create( 4918.AddDocument(DocumentInfo.Create(documentId, "Test", sourceCodeKind: SourceCodeKind.Script)); 4959.WithAnalyzerConfigDocuments([DocumentInfo.Create(editorConfigDocumentId, ".editorconfig", filePath: editorConfigFilePath)]); 5456var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
847var documentInfo = DocumentInfo.Create(
WorkspaceTests\AdhocWorkspaceTests.cs (5)
59var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 152var docInfo = DocumentInfo.Create( 215var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 249var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 322var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
WorkspaceTests\WorkspaceReferenceTests.cs (5)
35var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 75var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 115var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 155var referenceDocumentInfo = DocumentInfo.Create(DocumentId.CreateNewId(referenceProject.Id), "code.cs"); 159var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs");
WorkspaceTests\WorkspaceTests.cs (1)
167return this.AddDocument(DocumentInfo.Create(id, name, loader: loader));
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedLanguage.cs (1)
115Workspace.OnDocumentAdded(DocumentInfo.Create(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
PersistentStorage\AbstractPersistentStorageTests.cs (1)
993solution = solution.AddDocument(DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "Document1",
Roslyn.VisualStudio.Next.UnitTests (4)
Remote\SnapshotSerializationTests.cs (1)
64.AddAnalyzerConfigDocuments([DocumentInfo.Create(
Services\SolutionServiceTests.cs (3)
332var additionalDocumentInfo = DocumentInfo.Create( 363var analyzerConfigDocumentInfo = DocumentInfo.Create( 396var documentInfo = DocumentInfo.Create(