1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentInfo.cs (1)
68Attributes = attributes;
19 references to Attributes
Microsoft.CodeAnalysis.Workspaces (19)
Workspace\Solution\AdditionalDocumentState.cs (1)
30: this(solutionServices, documentInfo.DocumentServiceProvider, documentInfo.Attributes, CreateTextAndVersionSource(solutionServices, documentInfo.TextLoader, documentInfo.FilePath, loadTextOptions), loadTextOptions)
Workspace\Solution\AnalyzerConfigDocumentState.cs (1)
36: this(solutionServices, documentInfo.DocumentServiceProvider, documentInfo.Attributes, CreateTextAndVersionSource(solutionServices, documentInfo.TextLoader, documentInfo.FilePath, loadTextOptions), loadTextOptions)
Workspace\Solution\DocumentInfo.cs (14)
26public DocumentId Id => Attributes.Id; 31public string Name => Attributes.Name; 36public IReadOnlyList<string> Folders => Attributes.Folders; 41public SourceCodeKind SourceCodeKind => Attributes.SourceCodeKind; 46public string? FilePath => Attributes.FilePath; 51public bool IsGenerated => Attributes.IsGenerated; 103var newAttributes = attributes ?? Attributes; 107if (newAttributes == Attributes && 118=> With(attributes: Attributes.With(id: id ?? throw new ArgumentNullException(nameof(id)))); 121=> With(attributes: Attributes.With(name: name ?? throw new ArgumentNullException(nameof(name)))); 124=> With(attributes: Attributes.With(folders: PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders)))); 127=> With(attributes: Attributes.With(sourceCodeKind: kind)); 130=> With(attributes: Attributes.With(filePath: filePath)); 136=> With(attributes: Attributes.With(designTimeOnly: designTimeOnly));
Workspace\Solution\DocumentState.cs (2)
78info.Attributes.SyntaxTreeFilePath, 86info.Attributes,
Workspace\Solution\TextDocumentState.cs (1)
54=> WithAttributes(info.Attributes)