1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentInfo.cs (1)
68
Attributes
= 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)
26
public DocumentId Id =>
Attributes
.Id;
31
public string Name =>
Attributes
.Name;
36
public IReadOnlyList<string> Folders =>
Attributes
.Folders;
41
public SourceCodeKind SourceCodeKind =>
Attributes
.SourceCodeKind;
46
public string? FilePath =>
Attributes
.FilePath;
51
public bool IsGenerated =>
Attributes
.IsGenerated;
103
var newAttributes = attributes ??
Attributes
;
107
if (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)
78
info.
Attributes
.SyntaxTreeFilePath,
86
info.
Attributes
,
Workspace\Solution\TextDocumentState.cs (1)
54
=> WithAttributes(info.
Attributes
)