285 references to CreateNewId
IdeCoreBenchmarks (3)
FormatterBenchmarks.cs (1)
47var documentId = DocumentId.CreateNewId(projectId);
ProjectOperationBenchmarks.cs (1)
72var documentId = DocumentId.CreateNewId(projectId, documentName);
RenameBenchmarks.cs (1)
41var documentId = DocumentId.CreateNewId(projectId);
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
AbstractCodeActionOrUserDiagnosticTest.cs (1)
241var documentId = DocumentId.CreateNewId(project.Id);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (14)
CodeActions\Preview\PreviewTests.cs (1)
77solution = solution.AddDocument(DocumentId.CreateNewId(_oldDocument.Project.Id, AddedDocumentName), AddedDocumentName, AddedDocumentText);
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
163var additionalDocId = DocumentId.CreateNewId(workspace.CurrentSolution.Projects.Single().Id);
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (3)
665var newDocId = DocumentId.CreateNewId(oldProject.Id); 711var newDocId = DocumentId.CreateNewId(oldProject.Id); 744var documentId = DocumentId.CreateNewId(oldProject.Id);
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (3)
41.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 42.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") 43.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From(""), filePath: EditorconfigPath)));
Formatting\CodeCleanupTests.TestFixers.cs (2)
116return solution.AddDocument(DocumentId.CreateNewId(project.Id), "new.cs", SourceText.From("")); 172return solution.AddDocument(DocumentId.CreateNewId(project.Id), "new.cs", SourceText.From(""));
Formatting\RazorLineFormattingOptionsTests.cs (1)
58DocumentId.CreateNewId(project.Id),
Workspaces\WorkspaceTests_EditorFeatures.cs (3)
702var newSolution = oldSolution.AddDocument(DocumentId.CreateNewId(project1.Id), "Doc2", SourceText.From(doc2Text)); 1168var newDocId = DocumentId.CreateNewId(project.Id); 1204var newDocId = DocumentId.CreateNewId(project.Id);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SymbolEditorTests.cs (1)
38DocumentId.CreateNewId(pid),
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveSession.cs (2)
211var newSubmissionDocumentId = DocumentId.CreateNewId(_currentSubmissionProjectId, newSubmissionProjectName); 235DocumentId.CreateNewId(initializationScriptProjectId, debugName: initializationScriptPath),
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (1)
241var documentId = DocumentId.CreateNewId(project.Id);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
401var generatedDocumentId = DocumentId.CreateNewId(workspace.CurrentSolution.ProjectIds.First());
Rename\RenamerTests.cs (3)
56var documentId = DocumentId.CreateNewId(projectId); 189var documentId = DocumentId.CreateNewId(projectId); 223var documentId = DocumentId.CreateNewId(projectId);
Workspaces\TestHostDocument.cs (1)
191_id = DocumentId.CreateNewId(project.Id, this.Name);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (53)
CodeGeneration\CodeGenerationTests.cs (1)
643var documentId = DocumentId.CreateNewId(projectId);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
363DocumentId.CreateNewId(project.Id), 486DocumentId.CreateNewId(projectId), 584DocumentId.CreateNewId(projectId),
EditAndContinue\CompileTimeSolutionProviderTests.cs (7)
42var analyzerConfigId = DocumentId.CreateNewId(projectId); 43var documentId = DocumentId.CreateNewId(projectId); 44var additionalDocumentId = DocumentId.CreateNewId(projectId); 45var designTimeDocumentId = DocumentId.CreateNewId(projectId); 114var analyzerConfigId = DocumentId.CreateNewId(projectId); 115var additionalDocumentId = DocumentId.CreateNewId(projectId); 139var documentId = DocumentId.CreateNewId(projectId);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (19)
137solution = solution.AddAdditionalDocument(DocumentId.CreateNewId(project.Id), "additional", CreateText(additionalFileText)); 143DocumentId.CreateNewId(project.Id), 397DocumentId.CreateNewId(projectId, name), 532var documentIdA = DocumentId.CreateNewId(projectPId, debugName: "A"); 539var documentIdB = DocumentId.CreateNewId(projectPId, debugName: "B"); 546var documentIdC = DocumentId.CreateNewId(projectPId, debugName: "C"); 553var documentIdE = DocumentId.CreateNewId(projectPId, debugName: "E"); 576id: DocumentId.CreateNewId(projectQ.Id, debugName: "D"), 754DocumentId.CreateNewId(document.Project.Id), 807var documentId = DocumentId.CreateNewId(projectId); 808var designTimeOnlyDocumentId = DocumentId.CreateNewId(projectId); 1340var documentId = DocumentId.CreateNewId(projectId); 1970var documentId = DocumentId.CreateNewId(projectId); 3716DocumentId.CreateNewId(project.Id, "test"), 3790var linkedDocId = DocumentId.CreateNewId(p.Id, projectName + "->" + doc.Name); 4476var documentIdA = DocumentId.CreateNewId(projectP.Id, debugName: "A"); 4563var documentIdA = DocumentId.CreateNewId(projectP.Id, debugName: "A"); 4630var documentIdA = DocumentId.CreateNewId(projectP.Id, debugName: "A"); 4690var documentId = DocumentId.CreateNewId(projectId);
EditAndContinue\EditSessionActiveStatementsTests.cs (2)
82var id = DocumentId.CreateNewId(project.Id, name); 180solution = dummyProject.Solution.AddDocument(DocumentId.CreateNewId(dummyProject.Id, NoCompilationConstants.LanguageName), "a.dummy", "");
EditAndContinue\RemoteEditAndContinueServiceTests.cs (2)
79var documentId = DocumentId.CreateNewId(projectId); 81var inProcOnlyDocumentId = DocumentId.CreateNewId(inProcOnlyProjectId);
SolutionCrawler\WorkCoordinatorTests.cs (17)
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"); 1318var documentId = DocumentId.CreateNewId(projectId); 1339var documentId = DocumentId.CreateNewId(projectId); 1360var documentId = DocumentId.CreateNewId(projectId); 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}");
SymbolFinder\DependentTypeFinderTests.cs (1)
31var did = DocumentId.CreateNewId(pid);
TextEditor\OpenDocumentTests.cs (1)
42var documentId = DocumentId.CreateNewId(projectId);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
47Dim newSln = workspace.CurrentSolution.AddAdditionalDocument(DocumentId.CreateNewId(project.Id), "App.Config", SourceText.From("false"))
Diagnostics\DiagnosticServiceTests.vb (1)
2477Dim missingDocumentId = DocumentId.CreateNewId(project.Id, "Missing ID")
Microsoft.CodeAnalysis.Features (10)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
340var id = DocumentId.CreateNewId(project.Id);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
52var newDocumentId = DocumentId.CreateNewId(projectToBeUpdated.Id, FileName);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
46var newDocumentId = DocumentId.CreateNewId(document.Project.Id, document.Name);
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
277var newDocumentId = DocumentId.CreateNewId(projectToBeUpdated.Id, debugName: documentName); 354var documentId = DocumentId.CreateNewId(projectToBeUpdated.Id, documentName);
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (2)
69var assemblyInfoDocumentId = DocumentId.CreateNewId(projectId); 85var generatedDocumentId = DocumentId.CreateNewId(projectId);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
327var documentId = DocumentId.CreateNewId(projectId);
Shared\Utilities\ExtractTypeHelpers.cs (1)
61var newDocumentId = DocumentId.CreateNewId(projectId, debugName: fileName);
Workspace\MiscellaneousFileUtilities.cs (1)
46var documentId = DocumentId.CreateNewId(projectId, debugName: filePath);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (1)
158DocumentId.CreateNewId(project.Id),
Workspaces\LspWorkspaceManagerTests.cs (2)
181var newDocumentId = DocumentId.CreateNewId(testLspServer.TestWorkspace.CurrentSolution.ProjectIds[0]); 202var newDocumentId = DocumentId.CreateNewId(testLspServer.TestWorkspace.CurrentSolution.ProjectIds[0]);
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
CompilerInvocation.cs (1)
107DocumentId.CreateNewId(projectId, mappedPath),
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (5)
CodeActions\Preview\PreviewTests.vb (1)
51solution = solution.AddDocument(DocumentId.CreateNewId(_oldDocument.Project.Id, s_addedDocumentName), s_addedDocumentName, s_addedDocumentText)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.vb (1)
110Dim additionalDocId = DocumentId.CreateNewId(projectId)
EditAndContinue\VisualBasicEditAndContinueAnalyzerTests.vb (1)
680Dim newDocId = DocumentId.CreateNewId(oldProject.Id)
Formatting\CodeCleanUpTests.vb (2)
663Return solution.AddDocument(DocumentId.CreateNewId(project.Id), "new.vb", SourceText.From("")) 708Return solution.AddDocument(DocumentId.CreateNewId(project.Id), "new.vb", SourceText.From(""))
Microsoft.CodeAnalysis.Workspaces (12)
Workspace\AdhocWorkspace.cs (1)
130var id = DocumentId.CreateNewId(projectId);
Workspace\CommandLineProject.cs (2)
125var id = DocumentId.CreateNewId(projectId, absolutePath); 152var id = DocumentId.CreateNewId(projectId, absolutePath);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
94var documentId = DocumentId.CreateNewId(_project.Id, fullPath); 144var documentId = DocumentId.CreateNewId(_project.Id, fullPath); 584var documentId = DocumentId.CreateNewId(_project.Id, filePath);
Workspace\Solution\Project.cs (6)
666var id = DocumentId.CreateNewId(this.Id); 678var id = DocumentId.CreateNewId(this.Id); 687var id = DocumentId.CreateNewId(this.Id, debugName: name); 696var id = DocumentId.CreateNewId(this.Id); 705var id = DocumentId.CreateNewId(this.Id); 714var id = DocumentId.CreateNewId(this.Id);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
451DocumentId.CreateNewId(projectId, debugName: info.FilePath),
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2157var newDocId = DocumentId.CreateNewId(project.Id); 2194workspace.TryApplyChanges(workspace.CurrentSolution.AddAdditionalDocument(DocumentId.CreateNewId(csProjectId), "foo.xaml", SourceText.From("<foo></foo>")));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
WorkspaceExtensions.cs (2)
46return DocumentId.CreateNewId(projectId, uniqueName); 50return DocumentId.CreateNewId(projectId, name);
Microsoft.CodeAnalysis.Workspaces.UnitTests (145)
FindAllDeclarationsTests.cs (3)
159var submission0DocId = DocumentId.CreateNewId(submission0Id); 174var submission1DocId = DocumentId.CreateNewId(submission1Id); 702var did = DocumentId.CreateNewId(pid);
FindAllDeclarationsTests.TestSolutionsAndProject.cs (2)
101var did = DocumentId.CreateNewId(pid); 115var did = DocumentId.CreateNewId(pid);
FindReferencesTests.cs (7)
30var did = DocumentId.CreateNewId(pid); 45var did = DocumentId.CreateNewId(pid); 64var did = DocumentId.CreateNewId(pid); 104var did = DocumentId.CreateNewId(pid); 153var docId = DocumentId.CreateNewId(prj1Id); 192var docId = DocumentId.CreateNewId(prj1Id); 256var docId = DocumentId.CreateNewId(prj1Id);
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
27var documentId = DocumentId.CreateNewId(projectId);
SerializationTests.cs (1)
28var did = DocumentId.CreateNewId(pid);
SolutionTests\DocumentInfoTests.cs (7)
24var documentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 36var id = DocumentId.CreateNewId(ProjectId.CreateNewId()); 55var id = DocumentId.CreateNewId(ProjectId.CreateNewId()); 74var documentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 98var info = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc_name", filePath: path, sourceCodeKind: kind); 107var documentId = DocumentId.CreateNewId(projectId); 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 (104)
46private static readonly DocumentId s_unrelatedDocumentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 56.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", SourceText.From("public class Goo { }", Encoding.UTF8, SourceHashAlgorithms.Default)) 57.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default)) 58.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "/a/b"))); 78.AddDocument(DocumentId.CreateNewId(projectId1), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs") 79.AddAdditionalDocument(DocumentId.CreateNewId(projectId1), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "add.txt") 80.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId1), "editorcfg", SourceText.From("config", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "/a/b") 82.AddDocument(DocumentId.CreateNewId(projectId2), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs") 83.AddAdditionalDocument(DocumentId.CreateNewId(projectId2), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "add.txt") 84.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId2), "editorcfg", SourceText.From("config", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "/a/b"))); 309.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 310.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config")); 1095var documentAId = DocumentId.CreateNewId(projectId); 1096var documentBId = DocumentId.CreateNewId(projectId); 1097var documentCId = DocumentId.CreateNewId(projectId); 1098var fileDocumentId = DocumentId.CreateNewId(projectId); 1278var documentId = DocumentId.CreateNewId(projectId); 1312var documentId = DocumentId.CreateNewId(projectId); 1719var documentId = DocumentId.CreateNewId(projectId); 1731Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", loader)); 1744var documentId = DocumentId.CreateNewId(projectId); 1762Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", "text")); 1774var documentId = DocumentId.CreateNewId(projectId); 1790Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", sourceText)); 1803var documentId = DocumentId.CreateNewId(projectId); 1819Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", syntaxRoot: root)); 1832var documentId = DocumentId.CreateNewId(projectId); 1863var documentId = DocumentId.CreateNewId(projectId); 1919var did = DocumentId.CreateNewId(pid); 1944var did2 = DocumentId.CreateNewId(pid2); 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"); 2155var doc1 = DocumentId.CreateNewId(pm1); 2156var doc2 = DocumentId.CreateNewId(pm2); 2181.AddDocument(DocumentId.CreateNewId(pm1), "goo.cs", "public class X { }") 2182.AddDocument(DocumentId.CreateNewId(pm2), "bar.vb", "Public Class Y\r\nInherits X\r\nEnd Class"); 2487var did = DocumentId.CreateNewId(pid); 2509var documentId = DocumentId.CreateNewId(projectId); 2531var did = DocumentId.CreateNewId(pid); 2569var did = DocumentId.CreateNewId(pid); 2610var documentId = DocumentId.CreateNewId(projectId); 2650var did = DocumentId.CreateNewId(pid); 2684var did = DocumentId.CreateNewId(pid); 2704var did = DocumentId.CreateNewId(pid); 2727var did = DocumentId.CreateNewId(pid); 2751var did = DocumentId.CreateNewId(pid); 2771var did = DocumentId.CreateNewId(pid); 2792var did = DocumentId.CreateNewId(pid); 2814var did = DocumentId.CreateNewId(pid); 2834var did = DocumentId.CreateNewId(pid); 2854var did = DocumentId.CreateNewId(pid); 2873var did = DocumentId.CreateNewId(pid); 2904var did = DocumentId.CreateNewId(pid); 2935var did = DocumentId.CreateNewId(pid); 2961var did = DocumentId.CreateNewId(pid); 2988var did = DocumentId.CreateNewId(pid); 3012var did = DocumentId.CreateNewId(pid); 3077var did = DocumentId.CreateNewId(pid); 3102var did = DocumentId.CreateNewId(pid); 3131var did = DocumentId.CreateNewId(pid); 3270var did = DocumentId.CreateNewId(pid); 3296var did1 = DocumentId.CreateNewId(pid1); 3297var did2 = DocumentId.CreateNewId(pid2); 3298var did3 = DocumentId.CreateNewId(pid3); 3682var documentId1 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 3683var documentId2 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 3684var documentId3 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 3822var did1 = DocumentId.CreateNewId(pid); 3826var did2 = DocumentId.CreateNewId(pid); 3830var did3 = DocumentId.CreateNewId(pid); 3834var did4 = DocumentId.CreateNewId(pid); 3838var did5 = DocumentId.CreateNewId(pid); 3886var did1 = DocumentId.CreateNewId(pid); 3890var did2 = DocumentId.CreateNewId(pid); 3894var did3 = DocumentId.CreateNewId(pid); 3898var did4 = DocumentId.CreateNewId(pid); 3902var did5 = DocumentId.CreateNewId(pid); 3921var sourceDocumentId = DocumentId.CreateNewId(projectId); 3929var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 3958var sourceDocumentId = DocumentId.CreateNewId(projectId); 3963var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4000var sourceDocumentId = DocumentId.CreateNewId(projectId); 4005var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4045var sourceDocumentId = DocumentId.CreateNewId(projectId); 4053var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4076var sourceDocumentId = DocumentId.CreateNewId(projectId); 4099var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4127var documentId = DocumentId.CreateNewId(projectId); 4148var documentId = DocumentId.CreateNewId(projectId); 4166var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4294var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 4384var documentId = DocumentId.CreateNewId(projectId); 4389.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), ".editorconfig", SourceText.From($"[{pattern}]\nindent_style = tab"), filePath: configPath);
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
798DocumentId.CreateNewId(project.Id),
SyntaxNodeTests.cs (1)
83var did = DocumentId.CreateNewId(pid);
SyntaxReferenceTests.cs (2)
37var did = DocumentId.CreateNewId(pid); 47var did = DocumentId.CreateNewId(pid);
WorkspaceTests\AdhocWorkspaceTests.cs (6)
62var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 156DocumentId.CreateNewId(pid), 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))); 288DocumentId.CreateNewId(pid), 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)
167var id = DocumentId.CreateNewId(projectId);
Microsoft.VisualStudio.LanguageServices (2)
Implementation\AbstractEditorFactory.cs (1)
327var documentId = DocumentId.CreateNewId(projectToAddTo.Id);
Venus\ContainedLanguage.cs (1)
116documentId = DocumentId.CreateNewId(projectId, $"{nameof(ContainedDocument)}: {filePath}");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (9)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (3)
31.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 32.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") 33.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config"), filePath: "/a/b")));
EditorConfigSettings\DataProvider\DataProviderTests.cs (3)
31.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 32.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") 34.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config"), filePath: "/a/b")));
PersistentStorage\AbstractPersistentStorageTests.cs (3)
880var id = DocumentId.CreateNewId(solution.Projects.Single().Id); 900var id = DocumentId.CreateNewId(solution.Projects.Single().Id); 998solution = solution.AddDocument(DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "Document1",
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\Projects\RoslynRemoteProjectInfoProvider.cs (1)
94DocumentId.CreateNewId(projectId),
Client\RemoteLanguageServiceWorkspace.cs (1)
351DocumentId.CreateNewId(project.Id),
Microsoft.VisualStudio.LanguageServices.UnitTests (5)
Preview\PreviewChangesTests.vb (3)
103Dim addedDocumentId = DocumentId.CreateNewId(docId.ProjectId) 204Dim addedDocumentId1 = DocumentId.CreateNewId(docId.ProjectId) 205Dim addedDocumentId2 = DocumentId.CreateNewId(docId.ProjectId)
SolutionExplorer\SourceGeneratorItemTests.vb (2)
177DocumentId.CreateNewId(projectId), 187DocumentId.CreateNewId(projectId),
Roslyn.VisualStudio.Next.UnitTests (4)
Remote\SnapshotSerializationTests.cs (1)
76DocumentId.CreateNewId(project1.Id),
Services\SolutionServiceTests.cs (3)
244var additionalDocumentId = DocumentId.CreateNewId(projectId); 275var analyzerConfigDocumentId = DocumentId.CreateNewId(projectId); 308var documentId = DocumentId.CreateNewId(projectId);