1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentInfo.cs (1)
70Attributes = attributes;
19 references to Attributes
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorDynamicFileInfo.cs (1)
52return new DocumentInfo(existingDocumentInfo.Attributes, this.TextLoader, serviceProvider);
Microsoft.CodeAnalysis.Workspaces (16)
Workspace\Solution\DocumentInfo.cs (14)
28public DocumentId Id => Attributes.Id; 33public string Name => Attributes.Name; 38public IReadOnlyList<string> Folders => Attributes.Folders; 43public SourceCodeKind SourceCodeKind => Attributes.SourceCodeKind; 48public string? FilePath => Attributes.FilePath; 53public bool IsGenerated => Attributes.IsGenerated; 105var newAttributes = attributes ?? Attributes; 109if (newAttributes == Attributes && 120=> With(attributes: Attributes.With(id: id ?? throw new ArgumentNullException(nameof(id)))); 123=> With(attributes: Attributes.With(name: name ?? throw new ArgumentNullException(nameof(name)))); 126=> With(attributes: Attributes.With(folders: PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)))); 129=> With(attributes: Attributes.With(sourceCodeKind: kind)); 132=> With(attributes: Attributes.With(filePath: filePath)); 138=> With(attributes: Attributes.With(designTimeOnly: designTimeOnly));
Workspace\Solution\DocumentState.cs (1)
76info.Attributes.SyntaxTreeFilePath,
Workspace\Solution\TextDocumentState.cs (1)
61info.Attributes,
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\DocumentInfoTests.cs (2)
100Assert.Equal(expectedSyntaxTreeFilePath, info.Attributes.SyntaxTreeFilePath); 114SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithDesignTimeOnly(value), opt => opt.Attributes.DesignTimeOnly, true);