3 instantiations of DocumentInfo
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Solution\DocumentInfo.cs (2)
85return new DocumentInfo( 114return new DocumentInfo(newAttributes, newLoader, newDocumentServiceProvider);
Workspace\Workspace.cs (1)
1606new DocumentInfo(newDoc.DocumentState.Attributes, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));
337 references to DocumentInfo
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Formatting\RazorLineFormattingOptionsTests.cs (2)
57var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SymbolEditorTests.cs (1)
37DocumentInfo.Create(
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
LanguageServer\AbstractLanguageServerProtocolTests.cs (2)
418var generatedDocumentInfo = DocumentInfo.Create(
Rename\RenamerTests.cs (2)
225var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
309DocumentInfo.Create( 388DocumentInfo.Create(
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
248AddDocument(DocumentInfo.Create(
TextEditor\OpenDocumentTests.cs (1)
43workspace.AddDocument(DocumentInfo.Create(documentId, "Foo.cs", filePath: FilePath));
Microsoft.CodeAnalysis.ExternalAccess.Razor (7)
RazorDynamicFileInfo.cs (4)
46/// Constructs a new <see cref="DocumentInfo"/> from an existing <see cref="DocumentInfo"/> but with updated 49public DocumentInfo ToUpdatedDocumentInfo(DocumentInfo existingDocumentInfo)
Testing\AbstractRazorLanguageServerFactoryWrapper.cs (1)
20internal abstract DocumentInfo CreateDocumentInfo(
Testing\RazorTestLanguageServerFactory.cs (2)
45internal override DocumentInfo CreateDocumentInfo( 64return DocumentInfo.Create(id, name, folders, sourceCodeKind, loader, filePath, isGenerated)
Microsoft.CodeAnalysis.Features (14)
CodeFixes\Configuration\ConfigurationUpdater.cs (2)
331var documentInfo = DocumentInfo.Create(
EditAndContinue\CommittedSolution.cs (1)
270_solution = _solution.AddDocument(DocumentInfo.Create(
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
351DocumentInfo.Create(
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (4)
76var assemblyInfoDocument = DocumentInfo.Create( 85var generatedDocument = DocumentInfo.Create(
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (4)
325private ImmutableArray<DocumentInfo> CreateDocumentInfos( 328using var _ = ArrayBuilder<DocumentInfo>.GetInstance(out var documents); 346var documentInfo = DocumentInfo.Create(
Workspace\MiscellaneousFileUtilities.cs (2)
49var documentInfo = DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (2)
335internal static DocumentInfo CreateDesignTimeOnlyDocument(ProjectId projectId, string name = "design-time-only.cs", string path = "design-time-only.cs") 338return DocumentInfo.Create(
Microsoft.CodeAnalysis.Features.UnitTests (11)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
48AddDocument(DocumentInfo.Create(
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (8)
86solution = solution.AddDocument(DocumentInfo.Create( 93solution = solution.AddDocument(DocumentInfo.Create( 100solution = solution.AddDocument(DocumentInfo.Create( 107solution = solution.AddDocument(DocumentInfo.Create( 128solution = solution.AddDocument(DocumentInfo.Create( 270var documentInfo = CreateDesignTimeOnlyDocument(document1.Project.Id); 305var documentInfo = DocumentInfo.Create(
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
44solution = solution.AddDocument(DocumentInfo.Create(
EditAndContinue\WatchHotReloadServiceTests.cs (1)
56solution = solution.AddDocument(DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
ExternalAccess\Razor\FormatNewFileHandler.cs (1)
54DocumentInfo.Create(
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (2)
165var documentInfo = DocumentInfo.Create(
Workspaces\LspWorkspaceManagerTests.cs (2)
246var newDocumentInfo = DocumentInfo.Create(newDocumentId, "NewDoc.cs", filePath: newDocumentFilePath, loader: new TestTextLoader("New Doc"));
Microsoft.CodeAnalysis.Remote.ServiceHub (6)
Host\RemoteWorkspace.SolutionCreator.cs (6)
421Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 452await _assetProvider.GetAssetsAsync<DocumentInfo.DocumentAttributes>( 466Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 473ImmutableArray<DocumentInfo>.Builder? lazyDocumentsToAdd = null; 478lazyDocumentsToAdd ??= ImmutableArray.CreateBuilder<DocumentInfo>(); 562var newDocumentInfo = await _assetProvider.GetAssetAsync<DocumentInfo.DocumentAttributes>(
Microsoft.CodeAnalysis.Remote.Workspaces (5)
AbstractAssetProvider.cs (5)
98async Task<ImmutableArray<DocumentInfo>> CreateDocumentInfosAsync(DocumentChecksumsAndIds checksumsAndIds) 100var documentInfos = new FixedSizeArrayBuilder<DocumentInfo>(checksumsAndIds.Length); 128var attributesTask = this.GetAssetsAsync<DocumentInfo.DocumentAttributes>( 141public async Task<DocumentInfo> CreateDocumentInfoAsync( 144var attributes = await GetAssetAsync<DocumentInfo.DocumentAttributes>(new(AssetPathKind.DocumentAttributes, documentId), attributeChecksum, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (111)
Serialization\SerializationExtensions.cs (1)
23DocumentInfo.DocumentAttributes => WellKnownSynchronizationKind.DocumentAttributes,
Workspace\AdhocWorkspace.cs (2)
128return AddDocument(DocumentInfo.Create(id, name, loader: loader)); 134public Document AddDocument(DocumentInfo documentInfo)
Workspace\CommandLineProject.cs (4)
141IList<DocumentInfo> CreateDocuments(ImmutableArray<CommandLineSourceFile> files) 143var documents = new List<DocumentInfo>(); 159var doc = DocumentInfo.Create(
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (16)
54private readonly ImmutableArray<DocumentInfo>.Builder _documentsAddedInBatch = ImmutableArray.CreateBuilder<DocumentInfo>(); 67private readonly Action<Workspace, DocumentInfo> _documentAddAction; 74Action<Workspace, DocumentInfo> documentAddAction, 96var documentInfo = DocumentInfo.Create( 146var documentInfo = DocumentInfo.Create( 197var documentInfo = CreateDocumentInfoFromFileInfo(fileInfo, folders.NullToEmpty()); 486var documentInfo = new DocumentInfo(attributes, fileInfo.TextLoader, fileInfo.DocumentServiceProvider); 541Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 556Func<Solution, ImmutableArray<DocumentInfo>, Solution> addDocuments, 561ImmutableArray<DocumentInfo> documentsAddedInBatch, 574foreach (var documentInfo in documentsAddedInBatch) 610private DocumentInfo CreateDocumentInfoFromFileInfo(DynamicFileInfo fileInfo, ImmutableArray<string> folders) 620return DocumentInfo.Create(
Workspace\Solution\AdditionalDocumentState.cs (3)
18DocumentInfo.DocumentAttributes attributes, 28DocumentInfo documentInfo, 34protected override TextDocumentState UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes)
Workspace\Solution\AnalyzerConfigDocumentState.cs (3)
20DocumentInfo.DocumentAttributes attributes, 34DocumentInfo documentInfo, 40protected override TextDocumentState UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes)
Workspace\Solution\DocumentInfo.cs (11)
64/// Create a new instance of a <see cref="DocumentInfo"/>. 76public static DocumentInfo Create( 98private DocumentInfo With( 117public DocumentInfo WithId(DocumentId id) 120public DocumentInfo WithName(string name) 123public DocumentInfo WithFolders(IEnumerable<string>? folders) 126public DocumentInfo WithSourceCodeKind(SourceCodeKind kind) 129public DocumentInfo WithFilePath(string? filePath) 132public DocumentInfo WithTextLoader(TextLoader? loader) 135internal DocumentInfo WithDesignTimeOnly(bool designTimeOnly) 138internal DocumentInfo WithDocumentServiceProvider(IDocumentServiceProvider? provider)
Workspace\Solution\DocumentState.cs (5)
42DocumentInfo.DocumentAttributes attributes, 58DocumentInfo info, 401protected override TextDocumentState UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes) 443public new DocumentState WithAttributes(DocumentInfo.DocumentAttributes newAttributes) 537DocumentInfo.DocumentAttributes attributes,
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
85DocumentInfo.DocumentAttributes attributes,
Workspace\Solution\ProjectInfo.cs (20)
119public IReadOnlyList<DocumentInfo> Documents { get; } 139public IReadOnlyList<DocumentInfo> AdditionalDocuments { get; } 144public IReadOnlyList<DocumentInfo> AnalyzerConfigDocuments { get; } 155IReadOnlyList<DocumentInfo> documents, 159IReadOnlyList<DocumentInfo> additionalDocuments, 160IReadOnlyList<DocumentInfo> analyzerConfigDocuments, 189IEnumerable<DocumentInfo>? documents, 193IEnumerable<DocumentInfo>? additionalDocuments, 217IEnumerable<DocumentInfo>? documents = null, 221IEnumerable<DocumentInfo>? additionalDocuments = null, 250analyzerConfigDocuments: SpecializedCollections.EmptyBoxedImmutableArray<DocumentInfo>(), 258IEnumerable<DocumentInfo>? documents = null, 262IEnumerable<DocumentInfo>? additionalDocuments = null, 263IEnumerable<DocumentInfo>? analyzerConfigDocuments = null, 283IReadOnlyList<DocumentInfo>? documents = null, 287IReadOnlyList<DocumentInfo>? additionalDocuments = null, 288IReadOnlyList<DocumentInfo>? analyzerConfigDocuments = null, 371public ProjectInfo WithDocuments(IEnumerable<DocumentInfo>? documents) 374public ProjectInfo WithAdditionalDocuments(IEnumerable<DocumentInfo>? additionalDocuments) 377public ProjectInfo WithAnalyzerConfigDocuments(IEnumerable<DocumentInfo>? analyzerConfigDocuments)
Workspace\Solution\ProjectState.cs (2)
274internal DocumentState CreateDocument(DocumentInfo documentInfo, ParseOptions? parseOptions, LoadTextOptions loadTextOptions) 286internal TDocumentState CreateDocument<TDocumentState>(DocumentInfo documentInfo)
Workspace\Solution\Solution.cs (11)
964=> AddDocument(DocumentInfo.Create( 990return AddDocument(DocumentInfo.Create( 1002public Solution AddDocument(DocumentInfo documentInfo) 1010public Solution AddDocuments(ImmutableArray<DocumentInfo> documentInfos) 1041var info = CreateDocumentInfo(documentId, name, text, folders, filePath); 1045public Solution AddAdditionalDocument(DocumentInfo documentInfo) 1048public Solution AddAdditionalDocuments(ImmutableArray<DocumentInfo> documentInfos) 1075var info = CreateDocumentInfo(documentId, name, text, folders, filePath); 1079private DocumentInfo CreateDocumentInfo(DocumentId documentId, string name, SourceText text, IEnumerable<string>? folders, string? filePath) 1085return DocumentInfo.Create( 1100public Solution AddAnalyzerConfigDocuments(ImmutableArray<DocumentInfo> documentInfos)
Workspace\Solution\SolutionCompilationState.cs (7)
593using var _1 = ArrayBuilder<DocumentInfo>.GetInstance(out var addedDocumentInfos); 602void UpdateDocuments<TDocumentState>(IReadOnlyList<DocumentInfo> newDocumentInfos) 612foreach (var newDocumentInfo in newDocumentInfos) 786Func<DocumentInfo.DocumentAttributes, TArg, DocumentInfo.DocumentAttributes> updateAttributes) 1638/// Core helper that takes a set of <see cref="DocumentInfo" />s and does the application of the appropriate documents to each project. 1642ImmutableArray<DocumentInfo> documentInfos)
Workspace\Solution\SolutionState.cs (2)
950Func<DocumentInfo.DocumentAttributes, TArg, DocumentInfo.DocumentAttributes> updateAttributes)
Workspace\Solution\SourceGeneratedDocumentState.cs (3)
83new DocumentInfo.DocumentAttributes( 104DocumentInfo.DocumentAttributes attributes, 130protected override TextDocumentState UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes)
Workspace\Solution\TextDocumentState.cs (5)
20public readonly DocumentInfo.DocumentAttributes Attributes; 30DocumentInfo.DocumentAttributes attributes, 53public TextDocumentState WithDocumentInfo(DocumentInfo info) 58public TextDocumentState WithAttributes(DocumentInfo.DocumentAttributes newAttributes) 67protected abstract TextDocumentState UpdateAttributes(DocumentInfo.DocumentAttributes newAttributes);
Workspace\Solution\TextDocumentStates.cs (2)
73public TextDocumentStates(IEnumerable<DocumentInfo> infos, Func<DocumentInfo, TState> stateConstructor)
Workspace\Workspace.cs (13)
998protected internal void OnDocumentAdded(DocumentInfo documentInfo) 1008protected internal void OnDocumentsAdded(ImmutableArray<DocumentInfo> documentInfos) 1025protected internal void OnDocumentReloaded(DocumentInfo newDocumentInfo) 1062protected internal void OnDocumentInfoChanged(DocumentId documentId, DocumentInfo newInfo) 1319protected internal void OnAdditionalDocumentAdded(DocumentInfo documentInfo) 1357protected internal void OnAnalyzerConfigDocumentAdded(DocumentInfo documentInfo) 2008private static DocumentInfo CreateDocumentInfoWithText(TextDocument doc) 2011internal static DocumentInfo CreateDocumentInfoWithoutText(TextDocument doc) 2012=> DocumentInfo.Create( 2173protected virtual void ApplyDocumentAdded(DocumentInfo info, SourceText text) 2206protected virtual void ApplyDocumentInfoChanged(DocumentId id, DocumentInfo info) 2217protected virtual void ApplyAdditionalDocumentAdded(DocumentInfo info, SourceText text) 2250protected virtual void ApplyAnalyzerConfigDocumentAdded(DocumentInfo info, SourceText text)
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\MSBuildProjectLoader.Worker.cs (6)
435private ImmutableArray<DocumentInfo> CreateDocumentInfos(IReadOnlyList<DocumentFileInfo> documentFileInfos, ProjectId projectId, Encoding? encoding) 437var results = new FixedSizeArrayBuilder<DocumentInfo>(documentFileInfos.Count); 443var documentInfo = DocumentInfo.Create( 478private void CheckForDuplicateDocuments(ImmutableArray<DocumentInfo> documents, string? projectFilePath, ProjectId projectId) 481foreach (var doc in documents)
MSBuild\MSBuildWorkspace.cs (2)
449protected override void ApplyDocumentAdded(DocumentInfo info, SourceText text) 470var newDocumentInfo = info.WithName(fileName)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Workspaces\TestHostDocument.cs (2)
201public DocumentInfo ToDocumentInfo() 204return DocumentInfo.Create(Id, Name, Folders, SourceCodeKind, Loader, FilePath, isGenerated: false)
Workspaces\TestWorkspace`1.cs (4)
391protected override void ApplyDocumentAdded(DocumentInfo info, SourceText text) 417protected override void ApplyAdditionalDocumentAdded(DocumentInfo info, SourceText text) 441protected override void ApplyAnalyzerConfigDocumentAdded(DocumentInfo info, SourceText text) 552public Task AddDocumentAsync(DocumentInfo documentInfo)
Microsoft.CodeAnalysis.Workspaces.UnitTests (121)
CommandLineProject\CommandLineProjectTests.cs (11)
27var docInfo = info.Documents.First(); 58var docInfo = info.Documents.First(); 69var docInfo = info.Documents.First(); 81var docInfo = info.Documents.First(); 92var docInfo = info.Documents.First(); 104var docInfo = info.Documents.First(); 115var docInfo = info.Documents.First(); 126var firstDoc = info.Documents.Single(); 127var secondDoc = info.AdditionalDocuments.Single(); 138var document = Assert.Single(info.AnalyzerConfigDocuments); 152var firstDoc = info.Documents.Single();
SolutionTests\DocumentInfoTests.cs (19)
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 (16)
37var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "doc"); 73var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 76Assert.Same(documentInfo, ((ImmutableArray<DocumentInfo>)info1.Documents).Single()); 79Assert.True(((ImmutableArray<DocumentInfo>)info2.Documents).IsEmpty); 82Assert.True(((ImmutableArray<DocumentInfo>)info3.Documents).IsEmpty); 85Assert.True(((ImmutableArray<DocumentInfo>)info4.Documents).IsEmpty); 92var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 95Assert.Same(documentInfo, ((ImmutableArray<DocumentInfo>)info1.AdditionalDocuments).Single()); 98Assert.True(((ImmutableArray<DocumentInfo>)info2.AdditionalDocuments).IsEmpty); 101Assert.True(((ImmutableArray<DocumentInfo>)info3.AdditionalDocuments).IsEmpty); 104Assert.True(((ImmutableArray<DocumentInfo>)info4.AdditionalDocuments).IsEmpty); 182var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "doc");
SolutionTests\SolutionTests.cs (49)
1015var newDocumentInfo1 = DocumentInfo.Create( 1024var newDocumentInfo3 = DocumentInfo.Create( 1034var newAddDocumentInfo1 = DocumentInfo.Create( 1043var newAddDocumentInfo3 = DocumentInfo.Create( 1053var newConfigDocumentInfo1 = DocumentInfo.Create( 1062var newConfigDocumentInfo3 = DocumentInfo.Create( 1501solution = solution.AddDocument(DocumentInfo.Create(documentAId, "a.cs", loader: textLoaderA, filePath: "a.cs")); 1504solution = solution.AddDocument(DocumentInfo.Create(fileDocumentId, "d.cs", loader: new FileTextLoader(fileD.Path, defaultEncoding: null), filePath: fileD.Path)); 2468var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2469var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2492var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2493var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2519var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2520var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2544var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2545var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2565var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2566var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2587var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2606var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2625var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 4541DocumentInfo.Create( 4574DocumentInfo.Create( 4615DocumentInfo.Create( 4663DocumentInfo.Create( 4709DocumentInfo.Create( 4759.AddDocument(DocumentInfo.Create(documentId, "Test", sourceCodeKind: SourceCodeKind.Script)); 4800.WithAnalyzerConfigDocuments([DocumentInfo.Create(editorConfigDocumentId, ".editorconfig", filePath: editorConfigFilePath)]); 5280var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
SolutionTests\SolutionWithSourceGeneratorTests.cs (2)
797var documentInfo = DocumentInfo.Create(
WorkspaceTests\AdhocWorkspaceTests.cs (12)
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 (10)
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 (2)
167return this.AddDocument(DocumentInfo.Create(id, name, loader: loader)); 173public Document AddDocument(DocumentInfo documentInfo)
Microsoft.VisualStudio.LanguageServices (16)
Implementation\AbstractEditorFactory.cs (1)
331DocumentInfo.Create(
ProjectSystem\VisualStudioWorkspaceImpl.AbstractAddDocumentUndoUnit.cs (2)
15protected readonly DocumentInfo DocumentInfo; 20DocumentInfo docInfo,
ProjectSystem\VisualStudioWorkspaceImpl.AddAdditionalDocumentUndoUnit.cs (1)
17DocumentInfo docInfo,
ProjectSystem\VisualStudioWorkspaceImpl.AddAnalyzerConfigDocumentUndoUnit.cs (1)
16DocumentInfo docInfo,
ProjectSystem\VisualStudioWorkspaceImpl.AddDocumentUndoUnit.cs (1)
16DocumentInfo docInfo,
ProjectSystem\VisualStudioWorkspaceImpl.cs (9)
758protected override void ApplyDocumentAdded(DocumentInfo info, SourceText text) 761protected override void ApplyAdditionalDocumentAdded(DocumentInfo info, SourceText text) 764protected override void ApplyAnalyzerConfigDocumentAdded(DocumentInfo info, SourceText text) 770private void AddDocumentCore(DocumentInfo info, SourceText initialText, TextDocumentKind documentKind) 911DocumentInfo documentInfo, 1028var docInfo = CreateDocumentInfoWithoutText(document); 1220protected override void ApplyDocumentInfoChanged(DocumentId documentId, DocumentInfo updatedInfo) 1277/// The <see cref="VisualStudioWorkspace"/> currently supports only a subset of <see cref="DocumentInfo"/> 1280private static void FailIfDocumentInfoChangesNotSupported(CodeAnalysis.Document document, DocumentInfo updatedInfo)
Venus\ContainedLanguage.cs (1)
116Workspace.OnDocumentAdded(DocumentInfo.Create(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
PersistentStorage\AbstractPersistentStorageTests.cs (1)
993solution = solution.AddDocument(DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "Document1",
Microsoft.VisualStudio.LanguageServices.LiveShare (3)
Client\Projects\RoslynRemoteProjectInfoProvider.cs (1)
93DocumentInfo.Create(
Client\RemoteLanguageServiceWorkspace.cs (2)
334var docInfo = DocumentInfo.Create(
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
SolutionExplorer\SourceGeneratorItemTests.vb (2)
202DocumentInfo.Create( 217DocumentInfo.Create(
Roslyn.VisualStudio.Next.UnitTests (8)
Remote\SerializationValidator.cs (1)
183var info = await VerifyAssetSerializationAsync<DocumentInfo.DocumentAttributes>(
Remote\SnapshotSerializationTests.cs (1)
70DocumentInfo.Create(
Services\SolutionServiceTests.cs (6)
330var additionalDocumentInfo = DocumentInfo.Create( 361var analyzerConfigDocumentInfo = DocumentInfo.Create( 394var documentInfo = DocumentInfo.Create(