76 references to Create
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\RazorLineFormattingOptionsTests.cs (1)
57var documentInfo = DocumentInfo.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)
309DocumentInfo.Create( 388DocumentInfo.Create(
TextEditor\OpenDocumentTests.cs (1)
43workspace.AddDocument(DocumentInfo.Create(documentId, "Foo.cs", filePath: FilePath));
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
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)
351DocumentInfo.Create(
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
76var assemblyInfoDocument = DocumentInfo.Create(
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
346var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
338return DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
48AddDocument(DocumentInfo.Create(
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
305var 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)
159var doc = DocumentInfo.Create(
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
96var documentInfo = DocumentInfo.Create( 146var documentInfo = DocumentInfo.Create(
Workspace\Solution\Solution.cs (3)
964=> AddDocument(DocumentInfo.Create( 990return AddDocument(DocumentInfo.Create( 1085return DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestHostDocument.cs (1)
204return 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)
37var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "doc"); 73var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 92var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 182var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "doc");
SolutionTests\SolutionTests.cs (25)
1024var newDocumentInfo3 = DocumentInfo.Create( 1043var newAddDocumentInfo3 = DocumentInfo.Create( 1062var newConfigDocumentInfo3 = DocumentInfo.Create( 1504solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path)); 2468var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2469var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2492var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2493var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2519var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2520var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2544var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2545var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2565var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2566var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2587var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2606var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2625var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 4541DocumentInfo.Create( 4574DocumentInfo.Create( 4615DocumentInfo.Create( 4663DocumentInfo.Create( 4709DocumentInfo.Create( 4759.AddDocument(DocumentInfo.Create(documentId, "Test", sourceCodeKind: SourceCodeKind.Script)); 4800.WithAnalyzerConfigDocuments([DocumentInfo.Create(editorConfigDocumentId, ".editorconfig", filePath: editorConfigFilePath)]); 5280var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
797var 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)
36var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 76var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 116var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 156var referenceDocumentInfo = DocumentInfo.Create(DocumentId.CreateNewId(referenceProject.Id), "code.cs"); 160var 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)
116Workspace.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)
70DocumentInfo.Create(
Services\SolutionServiceTests.cs (3)
330var additionalDocumentInfo = DocumentInfo.Create( 361var analyzerConfigDocumentInfo = DocumentInfo.Create( 394var documentInfo = DocumentInfo.Create(