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)
347return DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
51AddDocument(DocumentInfo.Create(
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
346var 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)
975=> AddDocument(DocumentInfo.Create( 1001return AddDocument(DocumentInfo.Create( 1096return 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)
39var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "doc"); 75var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 94var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 184var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "doc");
SolutionTests\SolutionTests.cs (25)
1112var newDocumentInfo3 = DocumentInfo.Create( 1131var newAddDocumentInfo3 = DocumentInfo.Create( 1150var newConfigDocumentInfo3 = DocumentInfo.Create( 1628solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path)); 2611var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2612var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2635var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2636var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2662var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2663var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2687var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2688var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2708var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2709var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2730var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2749var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2768var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 4684DocumentInfo.Create( 4717DocumentInfo.Create( 4758DocumentInfo.Create( 4806DocumentInfo.Create( 4852DocumentInfo.Create( 4902.AddDocument(DocumentInfo.Create(documentId, "Test", sourceCodeKind: SourceCodeKind.Script)); 4943.WithAnalyzerConfigDocuments([DocumentInfo.Create(editorConfigDocumentId, ".editorconfig", filePath: editorConfigFilePath)]); 5423var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
805var 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)
333var additionalDocumentInfo = DocumentInfo.Create( 364var analyzerConfigDocumentInfo = DocumentInfo.Create( 397var documentInfo = DocumentInfo.Create(