111 references to Create
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\RazorLineFormattingOptionsTests.cs (1)
58var 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 (4)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
252DocumentInfo.Create( 328DocumentInfo.Create(
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
375AddDocument(DocumentInfo.Create(
TextEditor\OpenDocumentTests.cs (1)
43workspace.AddDocument(DocumentInfo.Create(documentId, "Foo.cs", filePath: FilePath));
Microsoft.CodeAnalysis.ExternalAccess.HotReload.UnitTests (3)
HotReloadMSBuildWorkspaceTests.cs (3)
42DocumentInfo.Create( 79DocumentInfo.Create( 84DocumentInfo.Create(
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Testing\RazorTestLanguageServerFactory.cs (1)
60return DocumentInfo.Create(id, name, folders, sourceCodeKind, loader, filePath, isGenerated)
Microsoft.CodeAnalysis.Features (7)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
331var documentInfo = DocumentInfo.Create(
EditAndContinue\CommittedSolution.cs (1)
286_solution = _solution.AddDocument(DocumentInfo.Create(
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
350DocumentInfo.Create(
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
355var assemblyInfoDocument = DocumentInfo.Create( 365var generatedDocument = DocumentInfo.Create(
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
347var documentInfo = DocumentInfo.Create(
Workspace\MiscellaneousFileUtilities.cs (1)
71var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
520return DocumentInfo.Create(
EditAndContinue\Extensions.cs (1)
118return DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.UnitTests (9)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (8)
87solution = solution.AddDocument(DocumentInfo.Create( 94solution = solution.AddDocument(DocumentInfo.Create( 101solution = solution.AddDocument(DocumentInfo.Create( 108solution = solution.AddDocument(DocumentInfo.Create( 129solution = solution.AddDocument(DocumentInfo.Create( 894var documentInfo = DocumentInfo.Create( 4810var documentInfo = DocumentInfo.Create( 5650solution = solution.AddDocument(DocumentInfo.Create(
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
40solution = solution.AddDocument(DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer (2)
FileBasedPrograms\CanonicalMiscFilesProjectLoader.cs (2)
96var newDocumentInfo = DocumentInfo.Create( 282DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
ExternalAccess\Razor\FormatNewFileHandler.cs (1)
56DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
MiscellaneousFiles\LspMiscellaneousFilesWorkspaceTests.cs (1)
28DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces (9)
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 (3)
108var documentInfo = DocumentInfo.Create( 158var documentInfo = DocumentInfo.Create( 644return DocumentInfo.Create(
Workspace\Solution\Solution.cs (3)
1035=> AddDocument(DocumentInfo.Create( 1061return AddDocument(DocumentInfo.Create( 1156return DocumentInfo.Create(
Workspace\Workspace.cs (1)
2041=> DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
354var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestHostDocument.cs (1)
206return DocumentInfo.Create(Id, Name, Folders, SourceCodeKind, Loader, FilePath, isGenerated: false)
Microsoft.CodeAnalysis.Workspaces.UnitTests (58)
SolutionTests\DocumentInfoTests.cs (11)
24Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(id: null, "doc")); 25Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, name: null)); 27Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, "doc", folders: ["folder", null])); 36var info = DocumentInfo.Create( 55var info = DocumentInfo.Create( 74var info1 = DocumentInfo.Create(documentId, "doc", folders: ["folder"]); 77var info2 = DocumentInfo.Create(documentId, "doc"); 80var info3 = DocumentInfo.Create(documentId, "doc", folders: []); 83var info4 = DocumentInfo.Create(documentId, "doc", folders: []); 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 (30)
1115var newDocumentInfo1 = DocumentInfo.Create( 1124var newDocumentInfo3 = DocumentInfo.Create( 1134var newAddDocumentInfo1 = DocumentInfo.Create( 1143var newAddDocumentInfo3 = DocumentInfo.Create( 1153var newConfigDocumentInfo1 = DocumentInfo.Create( 1162var newConfigDocumentInfo3 = DocumentInfo.Create( 1328var newDocumentInfo1 = DocumentInfo.Create( 1684solution = solution.AddDocument(DocumentInfo.Create(documentAId, "a.cs", loader: textLoaderA, filePath: "a.cs")); 1687solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path)); 2805var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2806var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2829var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2830var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2856var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2857var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2881var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2882var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2902var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2903var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2924var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2943var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2962var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 4880DocumentInfo.Create( 4913DocumentInfo.Create( 4954DocumentInfo.Create( 5002DocumentInfo.Create( 5048DocumentInfo.Create( 5098.AddDocument(DocumentInfo.Create(documentId, "Test", sourceCodeKind: SourceCodeKind.Script)); 5139.WithAnalyzerConfigDocuments([DocumentInfo.Create(editorConfigDocumentId, ".editorconfig", filePath: editorConfigFilePath)]); 5636var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
848var documentInfo = DocumentInfo.Create(
WorkspaceTests\AdhocWorkspaceTests.cs (6)
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))); 284var docInfo = DocumentInfo.Create( 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 (2)
Implementation\AbstractEditorFactory.cs (1)
335DocumentInfo.Create(
Venus\ContainedLanguage.cs (1)
115Workspace.OnDocumentAdded(DocumentInfo.Create(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
PersistentStorage\AbstractPersistentStorageTests.cs (1)
991solution = solution.AddDocument(DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "Document1",
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\Projects\RoslynRemoteProjectInfoProvider.cs (1)
93DocumentInfo.Create(
Client\RemoteLanguageServiceWorkspace.cs (1)
334var docInfo = DocumentInfo.Create(
Roslyn.VisualStudio.Next.UnitTests (4)
Remote\SnapshotSerializationTests.cs (1)
64.AddAnalyzerConfigDocuments([DocumentInfo.Create(
Services\SolutionServiceTests.cs (3)
324var additionalDocumentInfo = DocumentInfo.Create( 355var analyzerConfigDocumentInfo = DocumentInfo.Create( 388var documentInfo = DocumentInfo.Create(