106 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)
251DocumentInfo.Create( 327DocumentInfo.Create(
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
361AddDocument(DocumentInfo.Create(
TextEditor\OpenDocumentTests.cs (1)
43workspace.AddDocument(DocumentInfo.Create(documentId, "Foo.cs", filePath: FilePath));
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Testing\RazorTestLanguageServerFactory.cs (1)
65return 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)
301_solution = _solution.AddDocument(DocumentInfo.Create(
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
350DocumentInfo.Create(
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (2)
76var assemblyInfoDocument = DocumentInfo.Create( 85var generatedDocument = DocumentInfo.Create(
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
358var documentInfo = DocumentInfo.Create(
Workspace\MiscellaneousFileUtilities.cs (1)
59var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
482return DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.UnitTests (10)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
51AddDocument(DocumentInfo.Create(
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( 347var documentInfo = DocumentInfo.Create( 4012var documentInfo = DocumentInfo.Create( 4853solution = solution.AddDocument(DocumentInfo.Create(
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
40solution = solution.AddDocument(DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
ExternalAccess\Razor\FormatNewFileHandler.cs (1)
56DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (1)
168var documentInfo = DocumentInfo.Create(
Workspaces\LspWorkspaceManagerTests.cs (1)
248var newDocumentInfo = DocumentInfo.Create(newDocumentId, "NewDoc.cs", filePath: newDocumentFilePath, loader: new TestTextLoader("New Doc"));
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)
998=> AddDocument(DocumentInfo.Create( 1024return AddDocument(DocumentInfo.Create( 1119return DocumentInfo.Create(
Workspace\Workspace.cs (1)
2075=> DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
437var 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 (57)
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 (29)
1101var newDocumentInfo1 = DocumentInfo.Create( 1110var newDocumentInfo3 = DocumentInfo.Create( 1120var newAddDocumentInfo1 = DocumentInfo.Create( 1129var newAddDocumentInfo3 = DocumentInfo.Create( 1139var newConfigDocumentInfo1 = DocumentInfo.Create( 1148var newConfigDocumentInfo3 = DocumentInfo.Create( 1623solution = solution.AddDocument(DocumentInfo.Create(documentAId, "a.cs", loader: textLoaderA, filePath: "a.cs")); 1626solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path)); 2638var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2639var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2662var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2663var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2689var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2690var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2714var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2715var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2735var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2736var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2757var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2776var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2795var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 4713DocumentInfo.Create( 4746DocumentInfo.Create( 4787DocumentInfo.Create( 4835DocumentInfo.Create( 4881DocumentInfo.Create( 4931.AddDocument(DocumentInfo.Create(documentId, "Test", sourceCodeKind: SourceCodeKind.Script)); 4972.WithAnalyzerConfigDocuments([DocumentInfo.Create(editorConfigDocumentId, ".editorconfig", filePath: editorConfigFilePath)]); 5469var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
849var 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)
327DocumentInfo.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(