1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\DocumentInfo.cs (1)
70
Attributes
= attributes;
19 references to Attributes
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorDynamicFileInfo.cs (1)
52
return new DocumentInfo(existingDocumentInfo.
Attributes
, this.TextLoader, serviceProvider);
Microsoft.CodeAnalysis.Workspaces (16)
Workspace\Solution\DocumentInfo.cs (14)
28
public DocumentId Id =>
Attributes
.Id;
33
public string Name =>
Attributes
.Name;
38
public IReadOnlyList<string> Folders =>
Attributes
.Folders;
43
public SourceCodeKind SourceCodeKind =>
Attributes
.SourceCodeKind;
48
public string? FilePath =>
Attributes
.FilePath;
53
public bool IsGenerated =>
Attributes
.IsGenerated;
105
var newAttributes = attributes ??
Attributes
;
109
if (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)
76
info.
Attributes
.SyntaxTreeFilePath,
Workspace\Solution\TextDocumentState.cs (1)
61
info.
Attributes
,
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\DocumentInfoTests.cs (2)
100
Assert.Equal(expectedSyntaxTreeFilePath, info.
Attributes
.SyntaxTreeFilePath);
114
SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithDesignTimeOnly(value), opt => opt.
Attributes
.DesignTimeOnly, true);