283 references to CreateNewId
Analyzer.Utilities.UnitTests (2)
FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisTests.cs (1)
1268DocumentId documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);
Options\SymbolNamesWithValueOptionTests.cs (1)
440DocumentId documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);
IdeCoreBenchmarks (4)
FormatterBenchmarks.cs (1)
46var documentId = DocumentId.CreateNewId(projectId);
ProjectOperationBenchmarks.cs (1)
72var documentId = DocumentId.CreateNewId(projectId, documentName);
RenameBenchmarks.cs (1)
40var documentId = DocumentId.CreateNewId(projectId);
SwitchStatementBenchmarks.cs (1)
63var documentId = DocumentId.CreateNewId(projectId);
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticProject.cs (1)
79var documentId = DocumentId.CreateNewId(testProject, debugName: newFileName);
DiagnosticVerifier.cs (1)
180var documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
163var documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
163var documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (11)
CodeActions\PreviewTests.cs (1)
72solution = solution.AddDocument(DocumentId.CreateNewId(_oldDocument.Project.Id, AddedDocumentName), AddedDocumentName, AddedDocumentText);
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
154var additionalDocId = DocumentId.CreateNewId(workspace.CurrentSolution.Projects.Single().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)
114return solution.AddDocument(DocumentId.CreateNewId(project.Id), "new.cs", SourceText.From("")); 164return solution.AddDocument(DocumentId.CreateNewId(project.Id), "new.cs", SourceText.From(""));
Formatting\RazorLineFormattingOptionsTests.cs (1)
59DocumentId.CreateNewId(project.Id),
Workspaces\WorkspaceTests_EditorFeatures.cs (3)
772var newSolution = oldSolution.AddDocument(DocumentId.CreateNewId(project1.Id), "Doc2", SourceText.From(doc2Text)); 1248var newDocId = DocumentId.CreateNewId(project.Id); 1284var newDocId = DocumentId.CreateNewId(project.Id);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (3)
660var newDocId = DocumentId.CreateNewId(oldProject.Id); 706var newDocId = DocumentId.CreateNewId(oldProject.Id); 739var documentId = DocumentId.CreateNewId(oldProject.Id);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SymbolEditorTests.cs (1)
38DocumentId.CreateNewId(pid),
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveSession.cs (2)
223var newSubmissionDocumentId = DocumentId.CreateNewId(_currentSubmissionProjectId, newSubmissionProjectName); 247DocumentId.CreateNewId(initializationScriptProjectId, debugName: initializationScriptPath),
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Rename\RenamerTests.cs (3)
56var documentId = DocumentId.CreateNewId(projectId); 189var documentId = DocumentId.CreateNewId(projectId); 223var documentId = DocumentId.CreateNewId(projectId);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeGeneration\CodeGenerationTests.cs (1)
647var documentId = DocumentId.CreateNewId(projectId);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
253DocumentId.CreateNewId(projectId), 329DocumentId.CreateNewId(projectId),
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
369var documentId = DocumentId.CreateNewId(projectId);
SymbolFinder\SymbolFinderTests.cs (1)
32var did = DocumentId.CreateNewId(pid);
TextEditor\OpenDocumentTests.cs (1)
42var documentId = DocumentId.CreateNewId(projectId);
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
130?? DocumentId.CreateNewId(mappedProjectId);
Microsoft.CodeAnalysis.Features (10)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
330var id = DocumentId.CreateNewId(project.Id);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
51var newDocumentId = DocumentId.CreateNewId(projectToBeUpdated.Id, FileName);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
41var newDocumentId = DocumentId.CreateNewId(document.Project.Id, document.Name);
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
271var newDocumentId = DocumentId.CreateNewId(projectToBeUpdated.Id, debugName: documentName); 347var documentId = DocumentId.CreateNewId(projectToBeUpdated.Id, documentName);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
342var assemblyInfoDocumentId = DocumentId.CreateNewId(projectId); 359var generatedDocumentId = DocumentId.CreateNewId(projectId);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
344var documentId = DocumentId.CreateNewId(projectId);
Shared\Utilities\ExtractTypeHelpers.cs (1)
60var newDocumentId = DocumentId.CreateNewId(projectId, debugName: fileName);
Workspace\MiscellaneousFileUtilities.cs (1)
65var documentId = DocumentId.CreateNewId(projectId, debugName: filePath);
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (3)
121solution = solution.AddAdditionalDocument(DocumentId.CreateNewId(project.Id), "additional", CreateText(additionalFileText)); 131DocumentId.CreateNewId(project.Id), 494DocumentId.CreateNewId(projectId, name),
EditAndContinue\Extensions.cs (1)
107id = DocumentId.CreateNewId(projectId);
Microsoft.CodeAnalysis.Features.UnitTests (17)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (12)
86var documentIdA = DocumentId.CreateNewId(projectPId, debugName: "A"); 93var documentIdB = DocumentId.CreateNewId(projectPId, debugName: "B"); 100var documentIdC = DocumentId.CreateNewId(projectPId, debugName: "C"); 107var documentIdE = DocumentId.CreateNewId(projectPId, debugName: "E"); 130id: DocumentId.CreateNewId(projectQ.Id, debugName: "D"), 861DocumentId.CreateNewId(document.Project.Id), 919var designTimeOnlyDocumentId = DocumentId.CreateNewId(projectId); 1546AddDocument(documentId = DocumentId.CreateNewId(projectId), "test.cs", SourceText.From(editorSource, editorEncoding, SourceHashAlgorithm.Sha1), filePath: sourceFile.Path); 2335var documentId = DocumentId.CreateNewId(projectId); 4759DocumentId.CreateNewId(project.Id, "test"), 4835var linkedDocId = DocumentId.CreateNewId(p.Id, projectName + "->" + doc.Name); 5597var documentIdA = DocumentId.CreateNewId(projectP.Id, debugName: "A");
EditAndContinue\EditSessionActiveStatementsTests.cs (2)
81var id = DocumentId.CreateNewId(project.Id, name); 182solution = dummyProject.Solution.AddDocument(DocumentId.CreateNewId(dummyProject.Id, NoCompilationConstants.LanguageName), "a.dummy", "");
EditAndContinue\RemoteEditAndContinueServiceTests.cs (2)
77var documentId = DocumentId.CreateNewId(projectId); 79var inProcOnlyDocumentId = DocumentId.CreateNewId(inProcOnlyProjectId);
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
39var documentIdA = DocumentId.CreateNewId(projectP.Id, debugName: "A");
Microsoft.CodeAnalysis.LanguageServer (4)
FileBasedPrograms\CanonicalMiscFilesProjectLoader.cs (4)
152DocumentId.CreateNewId(newProjectId), 183DocumentId.CreateNewId(existingProjectId), 222DocumentId.CreateNewId(projectInfo.Id), 357DocumentId.CreateNewId(forkedProjectId),
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
ExternalAccess\Razor\FormatNewFileHandler.cs (1)
54var documentId = DocumentId.CreateNewId(project.Id);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
MiscellaneousFiles\LspMiscellaneousFilesWorkspaceTests.cs (1)
26var documentId = DocumentId.CreateNewId(projectId, filePath);
Workspaces\LspWorkspaceManagerTests.cs (1)
220var newDocumentId = DocumentId.CreateNewId(testLspServer.TestWorkspace.CurrentSolution.ProjectIds[0]);
Microsoft.CodeAnalysis.Workspaces (11)
Workspace\AdhocWorkspace.cs (1)
125var id = DocumentId.CreateNewId(projectId);
Workspace\CommandLineProject.cs (1)
161var id = DocumentId.CreateNewId(projectId, absolutePath);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
106var documentId = DocumentId.CreateNewId(_project.Id, fullPath); 156var documentId = DocumentId.CreateNewId(_project.Id, fullPath); 642var documentId = DocumentId.CreateNewId(_project.Id, filePath);
Workspace\Solution\Project.cs (6)
704var id = DocumentId.CreateNewId(this.Id); 716var id = DocumentId.CreateNewId(this.Id); 725var id = DocumentId.CreateNewId(this.Id, debugName: name); 734var id = DocumentId.CreateNewId(this.Id); 743var id = DocumentId.CreateNewId(this.Id); 752var id = DocumentId.CreateNewId(this.Id);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
358DocumentId.CreateNewId(projectId, debugName: info.FilePath),
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2152var newDocId = DocumentId.CreateNewId(project.Id); 2189workspace.TryApplyChanges(workspace.CurrentSolution.AddAdditionalDocument(DocumentId.CreateNewId(csProjectId), "foo.xaml", SourceText.From("<foo></foo>")));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
WorkspaceExtensions.cs (2)
46return DocumentId.CreateNewId(projectId, uniqueName); 50return DocumentId.CreateNewId(projectId, name);
Workspaces\TestHostDocument.cs (1)
164_id = DocumentId.CreateNewId(project.Id, this.Name);
Microsoft.CodeAnalysis.Workspaces.UnitTests (173)
FindAllDeclarationsTests.cs (3)
153var submission0DocId = DocumentId.CreateNewId(submission0Id); 168var submission1DocId = DocumentId.CreateNewId(submission1Id); 654var did = DocumentId.CreateNewId(pid);
FindAllDeclarationsTests.TestSolutionsAndProject.cs (2)
99var did = DocumentId.CreateNewId(pid); 113var did = DocumentId.CreateNewId(pid);
FindReferencesTests.cs (8)
31var did = DocumentId.CreateNewId(pid); 47var did = DocumentId.CreateNewId(pid); 62var did = DocumentId.CreateNewId(pid); 81var did = DocumentId.CreateNewId(pid); 125var did = DocumentId.CreateNewId(pid); 176var docId = DocumentId.CreateNewId(prj1Id); 217var docId = DocumentId.CreateNewId(prj1Id); 283var docId = DocumentId.CreateNewId(prj1Id);
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
27var documentId = DocumentId.CreateNewId(projectId);
SolutionTests\DocumentInfoTests.cs (7)
22var documentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 34var id = DocumentId.CreateNewId(ProjectId.CreateNewId()); 53var id = DocumentId.CreateNewId(ProjectId.CreateNewId()); 72var documentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 96var info = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc_name", filePath: path, sourceCodeKind: kind); 105var documentId = DocumentId.CreateNewId(projectId); 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 (131)
48private static readonly DocumentId s_unrelatedDocumentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 58.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", SourceText.From("public class Goo { }", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "goo.cs")) 59.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default)) 60.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From(editorConfig ?? "#empty", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "editorcfg")))); 80.AddDocument(DocumentId.CreateNewId(projectId1), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs") 81.AddAdditionalDocument(DocumentId.CreateNewId(projectId1), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "add.txt") 82.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId1), "editorcfg", SourceText.From("config", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "/a/b") 84.AddDocument(DocumentId.CreateNewId(projectId2), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs") 85.AddAdditionalDocument(DocumentId.CreateNewId(projectId2), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "add.txt") 86.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId2), "editorcfg", SourceText.From("config", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "/a/b"))); 331.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 332.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config")); 841.AddDocument(DocumentId.CreateNewId(projectId1), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs") 843.AddDocument(DocumentId.CreateNewId(projectId2), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs"))); 1078var d1 = DocumentId.CreateNewId(projectId); 1079var d2 = DocumentId.CreateNewId(projectId); 1080var d3 = DocumentId.CreateNewId(projectId); 1081var a1 = DocumentId.CreateNewId(projectId); 1082var a2 = DocumentId.CreateNewId(projectId); 1083var a3 = DocumentId.CreateNewId(projectId); 1084var c1 = DocumentId.CreateNewId(projectId); 1085var c2 = DocumentId.CreateNewId(projectId); 1086var c3 = DocumentId.CreateNewId(projectId); 1297var documentId = DocumentId.CreateNewId(projectId); 1298var documentId2 = DocumentId.CreateNewId(projectId); 1642var documentAId = DocumentId.CreateNewId(projectId); 1643var documentBId = DocumentId.CreateNewId(projectId); 1644var documentCId = DocumentId.CreateNewId(projectId); 1645var fileDocumentId = DocumentId.CreateNewId(projectId); 1826var documentId = DocumentId.CreateNewId(projectId); 1864var documentId = DocumentId.CreateNewId(projectId); 1902var documentId = DocumentId.CreateNewId(projectId); 1921var documentId = DocumentId.CreateNewId(projectId); 1940var documentId = DocumentId.CreateNewId(projectId); 2356var editorConfigId = DocumentId.CreateNewId(solution3.Projects.Single().Id); 2412var documentId = DocumentId.CreateNewId(projectId); 2424Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", loader)); 2437var documentId = DocumentId.CreateNewId(projectId); 2455Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", "text")); 2467var documentId = DocumentId.CreateNewId(projectId); 2483Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", sourceText)); 2495var newDocumentId = DocumentId.CreateNewId(project.Id); 2526.AddAdditionalDocument(DocumentId.CreateNewId(additionalFileProjectId), "Linked.cs", SourceText.From("class C {}"), filePath: LinkedFileName) 2528.AddDocument(DocumentId.CreateNewId(sourceFileProjectId), "Linked.cs", SourceText.From("class C {}"), filePath: LinkedFileName); 2556.AddAnalyzerConfigDocument(DocumentId.CreateNewId(analyzerConfigProjectId), "Linked.cs", SourceText.From("class C {}"), filePath: LinkedFileName) 2558.AddDocument(DocumentId.CreateNewId(sourceFileProjectId), "Linked.cs", SourceText.From("class C {}"), filePath: LinkedFileName); 2585.AddAdditionalDocument(DocumentId.CreateNewId(additionalFileProjectId), "Linked.cs", SourceText.From("class C {}"), filePath: LinkedFileName) 2587.AddDocument(DocumentId.CreateNewId(sourceFileProjectId), "Linked.cs", SourceText.From("class C {}"), filePath: LinkedFileName); 2606.AddAnalyzerConfigDocument(DocumentId.CreateNewId(analyzerConfigProjectId), "Linked.cs", SourceText.From("class C {}"), filePath: LinkedFileName) 2608.AddDocument(DocumentId.CreateNewId(sourceFileProjectId), "Linked.cs", SourceText.From("class C {}"), filePath: LinkedFileName); 2625var documentId = DocumentId.CreateNewId(projectId); 2641Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", syntaxRoot: root)); 2654var documentId = DocumentId.CreateNewId(projectId); 2688var documentId = DocumentId.CreateNewId(projectId); 2744var did = DocumentId.CreateNewId(pid); 2769var did2 = DocumentId.CreateNewId(pid2); 2789var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2790var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2813var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2814var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2840var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2841var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2865var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2866var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2886var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2887var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2908var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2927var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2946var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 2980var doc1 = DocumentId.CreateNewId(pm1); 2981var doc2 = DocumentId.CreateNewId(pm2); 3009.AddDocument(DocumentId.CreateNewId(pm1), "goo.cs", "public class X { }") 3010.AddDocument(DocumentId.CreateNewId(pm2), "bar.vb", "Public Class Y\r\nInherits X\r\nEnd Class"); 3315var did = DocumentId.CreateNewId(pid); 3337var documentId = DocumentId.CreateNewId(projectId); 3359var did = DocumentId.CreateNewId(pid); 3397var did = DocumentId.CreateNewId(pid); 3438var documentId = DocumentId.CreateNewId(projectId); 3478var did = DocumentId.CreateNewId(pid); 3502var did = DocumentId.CreateNewId(pid); 3522var did = DocumentId.CreateNewId(pid); 3545var did = DocumentId.CreateNewId(pid); 3569var did = DocumentId.CreateNewId(pid); 3589var did = DocumentId.CreateNewId(pid); 3610var did = DocumentId.CreateNewId(pid); 3632var did = DocumentId.CreateNewId(pid); 3652var did = DocumentId.CreateNewId(pid); 3672var did = DocumentId.CreateNewId(pid); 3691var did = DocumentId.CreateNewId(pid); 3722var did = DocumentId.CreateNewId(pid); 3753var did = DocumentId.CreateNewId(pid); 3779var did = DocumentId.CreateNewId(pid); 3806var did = DocumentId.CreateNewId(pid); 3832var did = DocumentId.CreateNewId(pid); 3899var did = DocumentId.CreateNewId(pid); 3924var did = DocumentId.CreateNewId(pid); 3953var did = DocumentId.CreateNewId(pid); 4092var did = DocumentId.CreateNewId(pid); 4119var did1 = DocumentId.CreateNewId(pid1); 4120var did2 = DocumentId.CreateNewId(pid2); 4121var did3 = DocumentId.CreateNewId(pid3); 4553var documentId1 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 4554var documentId2 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 4555var documentId3 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 4774var did1 = DocumentId.CreateNewId(pid); 4776var did2 = DocumentId.CreateNewId(pid); 4778var did3 = DocumentId.CreateNewId(pid); 4780var did4 = DocumentId.CreateNewId(pid); 4782var did5 = DocumentId.CreateNewId(pid); 4828var did1 = DocumentId.CreateNewId(pid); 4830var did2 = DocumentId.CreateNewId(pid); 4832var did3 = DocumentId.CreateNewId(pid); 4834var did4 = DocumentId.CreateNewId(pid); 4836var did5 = DocumentId.CreateNewId(pid); 4854var sourceDocumentId = DocumentId.CreateNewId(projectId); 4862var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4890var sourceDocumentId = DocumentId.CreateNewId(projectId); 4895var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4931var sourceDocumentId = DocumentId.CreateNewId(projectId); 4936var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4976var sourceDocumentId = DocumentId.CreateNewId(projectId); 4984var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 5007var sourceDocumentId = DocumentId.CreateNewId(projectId); 5030var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 5058var documentId = DocumentId.CreateNewId(projectId); 5078var documentId = DocumentId.CreateNewId(projectId); 5099var documentId = DocumentId.CreateNewId(projectId); 5117var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 5620var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 5710var documentId = DocumentId.CreateNewId(projectId); 5715.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), ".editorconfig", SourceText.From($"[{pattern}]\nindent_style = tab"), filePath: configPath);
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
849DocumentId.CreateNewId(project.Id), 1558DocumentId.CreateNewId(projectId1), "Y.cs", "// Contents");
SyntaxNodeTests.cs (1)
79var did = DocumentId.CreateNewId(pid);
SyntaxReferenceTests.cs (2)
28var did = DocumentId.CreateNewId(pid); 38var did = DocumentId.CreateNewId(pid);
WorkspaceTests\AdhocWorkspaceTests.cs (6)
59var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 153DocumentId.CreateNewId(pid), 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))); 285DocumentId.CreateNewId(pid), 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)
164var id = DocumentId.CreateNewId(projectId);
Microsoft.VisualStudio.LanguageServices (2)
Implementation\AbstractEditorFactory.cs (1)
331var documentId = DocumentId.CreateNewId(projectToAddTo.Id);
Venus\ContainedLanguage.cs (1)
112documentId = 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)
32.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 33.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") 35.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config"), filePath: "/a/b")));
PersistentStorage\AbstractPersistentStorageTests.cs (3)
872var id = DocumentId.CreateNewId(solution.Projects.Single().Id); 892var id = DocumentId.CreateNewId(solution.Projects.Single().Id); 991solution = 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)
335DocumentId.CreateNewId(project.Id),
Roslyn.VisualStudio.Next.UnitTests (4)
Remote\SnapshotSerializationTests.cs (1)
65DocumentId.CreateNewId(project1.Id),
Services\SolutionServiceTests.cs (3)
323var additionalDocumentId = DocumentId.CreateNewId(projectId); 354var analyzerConfigDocumentId = DocumentId.CreateNewId(projectId); 387var documentId = DocumentId.CreateNewId(projectId);
Test.Utilities (1)
CodeMetricsTestsBase.cs (1)
55var documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);