1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
36Attributes = attributes;
36 references to Attributes
Microsoft.CodeAnalysis.Workspaces (36)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
484var attributes = w.CurrentSolution.GetRequiredDocument(documentId).State.Attributes;
Workspace\Solution\AdditionalDocumentState.cs (2)
46Attributes, 64this.Attributes,
Workspace\Solution\AnalyzerConfigDocumentState.cs (3)
48Attributes.FilePath == newAttributes.FilePath ? _lazyAnalyzerConfig : null); 54Attributes, 74this.Attributes,
Workspace\Solution\DocumentState.cs (15)
97=> ParseOptions?.Kind ?? Attributes.SourceCodeKind; 100=> Attributes.IsGenerated; 323Attributes.SyntaxTreeFilePath, 330Attributes, 359newTree = treeFactory.CreateSyntaxTree(Attributes.SyntaxTreeFilePath, options, text: null, existingTree.Encoding, LoadTextOptions.ChecksumAlgorithm, existingRoot); 370Attributes.SyntaxTreeFilePath, 377Attributes.With(sourceCodeKind: options.Kind), 396return WithAttributes(Attributes.With(sourceCodeKind: kind)); 401Contract.ThrowIfTrue(ReferenceEquals(newAttributes, Attributes)); 404if (newAttributes.SyntaxTreeFilePath != Attributes.SyntaxTreeFilePath) 435Attributes, 470Attributes.SyntaxTreeFilePath, 479Attributes, 516var (text, treeAndVersion) = CreateTreeWithLazyText(newRoot, newTextVersion, newTreeVersion, encoding, LoadTextOptions.ChecksumAlgorithm, Attributes, ParseOptions, syntaxTreeFactory); 521Attributes,
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
259if (documentState.Value.Attributes.DesignTimeOnly)
Workspace\Solution\SolutionState.cs (1)
937var newDocument = oldDocument.WithAttributes(updateAttributes(oldDocument.Attributes, arg));
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
182this.Attributes,
Workspace\Solution\TextDocumentState.cs (7)
48public DocumentId Id => Attributes.Id; 49public string? FilePath => Attributes.FilePath; 50public IReadOnlyList<string> Folders => Attributes.Folders; 51public string Name => Attributes.Name; 59=> ReferenceEquals(newAttributes, Attributes) ? this : UpdateAttributes(newAttributes); 228=> oldState.Attributes != Attributes;
Workspace\Solution\TextDocumentState_Checksum.cs (1)
39var infoChecksum = this.Attributes.Checksum;
Workspace\Workspace.cs (4)
1113var oldAttributes = oldSolution.GetDocument(documentId)!.State.Attributes; 1651new DocumentInfo(newDoc.DocumentState.Attributes, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider)); 2055isGenerated: doc.State.Attributes.IsGenerated) 2056.WithDesignTimeOnly(doc.State.Attributes.DesignTimeOnly)