1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
36
Attributes
= attributes;
36 references to Attributes
Microsoft.CodeAnalysis.Workspaces (36)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
484
var attributes = w.CurrentSolution.GetRequiredDocument(documentId).State.
Attributes
;
Workspace\Solution\AdditionalDocumentState.cs (2)
46
Attributes
,
64
this.
Attributes
,
Workspace\Solution\AnalyzerConfigDocumentState.cs (3)
48
Attributes
.FilePath == newAttributes.FilePath ? _lazyAnalyzerConfig : null);
54
Attributes
,
74
this.
Attributes
,
Workspace\Solution\DocumentState.cs (15)
99
=> ParseOptions?.Kind ??
Attributes
.SourceCodeKind;
102
=>
Attributes
.IsGenerated;
325
Attributes
.SyntaxTreeFilePath,
332
Attributes
,
361
newTree = treeFactory.CreateSyntaxTree(
Attributes
.SyntaxTreeFilePath, options, text: null, existingTree.Encoding, LoadTextOptions.ChecksumAlgorithm, existingRoot);
372
Attributes
.SyntaxTreeFilePath,
379
Attributes
.With(sourceCodeKind: options.Kind),
398
return WithAttributes(
Attributes
.With(sourceCodeKind: kind));
403
Contract.ThrowIfTrue(ReferenceEquals(newAttributes,
Attributes
));
406
if (newAttributes.SyntaxTreeFilePath !=
Attributes
.SyntaxTreeFilePath)
437
Attributes
,
472
Attributes
.SyntaxTreeFilePath,
481
Attributes
,
504
var (text, treeAndVersion) = CreateTreeWithLazyText(newRoot, newTextVersion, newTreeVersion, encoding, LoadTextOptions.ChecksumAlgorithm,
Attributes
, ParseOptions, syntaxTreeFactory);
509
Attributes
,
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
259
if (documentState.Value.
Attributes
.DesignTimeOnly)
Workspace\Solution\SolutionState.cs (1)
937
var newDocument = oldDocument.WithAttributes(updateAttributes(oldDocument.
Attributes
, arg));
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
184
this.
Attributes
,
Workspace\Solution\TextDocumentState.cs (7)
48
public DocumentId Id =>
Attributes
.Id;
49
public string? FilePath =>
Attributes
.FilePath;
50
public IReadOnlyList<string> Folders =>
Attributes
.Folders;
51
public string Name =>
Attributes
.Name;
59
=> ReferenceEquals(newAttributes,
Attributes
) ? this : UpdateAttributes(newAttributes);
228
=> oldState.
Attributes
!=
Attributes
;
Workspace\Solution\TextDocumentState_Checksum.cs (1)
39
var infoChecksum = this.
Attributes
.Checksum;
Workspace\Workspace.cs (4)
1112
var oldAttributes = oldSolution.GetDocument(documentId)!.State.
Attributes
;
1650
new DocumentInfo(newDoc.DocumentState.
Attributes
, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));
2054
isGenerated: doc.State.
Attributes
.IsGenerated)
2055
.WithDesignTimeOnly(doc.State.
Attributes
.DesignTimeOnly)