119 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 (3)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
404var generatedDocumentInfo = DocumentInfo.Create(
Rename\RenamerTests.cs (1)
225var documentInfo = DocumentInfo.Create(
Workspaces\TestHostDocument.cs (1)
361return DocumentInfo.Create(Id, Name, Folders, SourceCodeKind, Loader, FilePath, isGenerated: false)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (31)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
362DocumentInfo.Create( 485DocumentInfo.Create( 583DocumentInfo.Create(
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
54AddDocument(DocumentInfo.Create(
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (12)
396return DocumentInfo.Create( 533solution = solution.AddDocument(DocumentInfo.Create( 540solution = solution.AddDocument(DocumentInfo.Create( 547solution = solution.AddDocument(DocumentInfo.Create( 554solution = solution.AddDocument(DocumentInfo.Create( 575solution = solution.AddDocument(DocumentInfo.Create( 753var documentInfo = DocumentInfo.Create( 3715var documentInfo = DocumentInfo.Create( 4477solution = solution.AddDocument(DocumentInfo.Create( 4564solution = solution.AddDocument(DocumentInfo.Create( 4631solution = solution.AddDocument(DocumentInfo.Create( 4696AddDocument(DocumentInfo.Create(
SolutionCrawler\WorkCoordinatorTests.cs (14)
101DocumentInfo.Create(DocumentId.CreateNewId(projectId), "D1") 223DocumentInfo.Create(DocumentId.CreateNewId(projectId), "D1"), 224DocumentInfo.Create(DocumentId.CreateNewId(projectId), "D2") 565var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "D6"); 736var ncfile = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "D6"); 779var analyzerConfigFile = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), ".editorconfig", filePath: analyzerConfigDocFilePath); 1303var info = DocumentInfo.Create(DocumentId.CreateNewId(id), "D6"); 1418workspace.OnDocumentAdded(DocumentInfo.Create(DocumentId.CreateNewId(solution.Projects[0].Id), "D6")); 1625documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "D1") }), 1627documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "D2") }, 1630documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId3), "D3") }, 1633documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId4), "D4") }), 1635documents: new[] { DocumentInfo.Create(DocumentId.CreateNewId(projectId5), "D5") }, 1661yield return DocumentInfo.Create(DocumentId.CreateNewId(projectId), $"D{i + 1}");
TextEditor\OpenDocumentTests.cs (1)
43workspace.AddDocument(DocumentInfo.Create(documentId, "Foo.cs", filePath: FilePath));
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorLanguageServerFactoryWrapper.cs (1)
66return DocumentInfo.Create(id, name, folders, sourceCodeKind, loader, filePath, isGenerated)
Microsoft.CodeAnalysis.Features (7)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
341var documentInfo = DocumentInfo.Create(
EditAndContinue\CommittedSolution.cs (1)
271_solution = _solution.AddDocument(DocumentInfo.Create(
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
357DocumentInfo.Create(
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (2)
77var assemblyInfoDocument = DocumentInfo.Create( 86var generatedDocument = DocumentInfo.Create(
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
329documents.Add(DocumentInfo.Create(
Workspace\MiscellaneousFileUtilities.cs (1)
49var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (1)
157var documentInfo = DocumentInfo.Create(
Workspaces\LspWorkspaceManagerTests.cs (1)
204var newDocumentInfo = DocumentInfo.Create(newDocumentId, "NewDoc.cs", filePath: newDocumentFilePath, loader: new TestTextLoader("New Doc"));
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
CompilerInvocation.cs (1)
106return DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces (10)
Workspace\AdhocWorkspace.cs (1)
133return AddDocument(DocumentInfo.Create(id, name, loader: loader));
Workspace\CommandLineProject.cs (2)
127var doc = DocumentInfo.Create( 154var doc = DocumentInfo.Create(
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
96var documentInfo = DocumentInfo.Create( 146var documentInfo = DocumentInfo.Create( 586return DocumentInfo.Create(
Workspace\Solution\Solution.cs (3)
1052=> AddDocument(DocumentInfo.Create( 1078return AddDocument(DocumentInfo.Create( 1189return DocumentInfo.Create(
Workspace\Workspace.cs (1)
1774=> DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
450var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.Workspaces.UnitTests (50)
SolutionTests\DocumentInfoTests.cs (11)
26Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(id: null, "doc")); 27Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, name: null)); 29Assert.Throws<ArgumentNullException>(() => DocumentInfo.Create(documentId, "doc", folders: new[] { "folder", null })); 38var info = DocumentInfo.Create( 57var info = DocumentInfo.Create( 76var info1 = DocumentInfo.Create(documentId, "doc", folders: new[] { "folder" }); 79var info2 = DocumentInfo.Create(documentId, "doc"); 82var info3 = DocumentInfo.Create(documentId, "doc", folders: new string[0]); 85var info4 = DocumentInfo.Create(documentId, "doc", folders: ImmutableArray<string>.Empty); 98var info = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc_name", filePath: path, sourceCodeKind: kind); 108var 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 (22)
1120solution = solution.AddDocument(DocumentInfo.Create(documentAId, "a.cs", loader: textLoaderA, filePath: "a.cs")); 1123solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path)); 1964var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 1965var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 1988var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 1989var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2015var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2016var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2040var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2041var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2061var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2062var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2083var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2102var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2121var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 3931DocumentInfo.Create( 3965DocumentInfo.Create( 4007DocumentInfo.Create( 4055DocumentInfo.Create( 4101DocumentInfo.Create( 4172.WithAnalyzerConfigDocuments(new[] { DocumentInfo.Create(editorConfigDocumentId, ".editorconfig", filePath: editorConfigFilePath) }); 4294var 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 (6)
62var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 155var docInfo = DocumentInfo.Create( 218var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 252var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 287var docInfo = DocumentInfo.Create( 346var 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)
170return this.AddDocument(DocumentInfo.Create(id, name, loader: loader));
Microsoft.VisualStudio.LanguageServices (2)
Implementation\AbstractEditorFactory.cs (1)
331DocumentInfo.Create(
Venus\ContainedLanguage.cs (1)
119Workspace.OnDocumentAdded(DocumentInfo.Create(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
PersistentStorage\AbstractPersistentStorageTests.cs (1)
998solution = 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)
350var docInfo = DocumentInfo.Create(
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
SolutionExplorer\SourceGeneratorItemTests.vb (2)
176DocumentInfo.Create( 186DocumentInfo.Create(
Roslyn.VisualStudio.Next.UnitTests (4)
Remote\SnapshotSerializationTests.cs (1)
75DocumentInfo.Create(
Services\SolutionServiceTests.cs (3)
245var additionalDocumentInfo = DocumentInfo.Create( 276var analyzerConfigDocumentInfo = DocumentInfo.Create( 309var documentInfo = DocumentInfo.Create(