1 write to Attributes
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
36
Attributes
= attributes;
48 references to Attributes
Microsoft.CodeAnalysis.Features (7)
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.cs (1)
254
if (document.State.
Attributes
.IsGenerated)
EditAndContinue\CommittedSolution.cs (2)
293
isGenerated: document.State.
Attributes
.IsGenerated)
294
.WithDesignTimeOnly(document.State.
Attributes
.DesignTimeOnly)
EditAndContinue\EditSession.cs (3)
520
if (newState.
Attributes
.DesignTimeOnly)
531
if (newState.
Attributes
.DesignTimeOnly)
542
if (oldState.
Attributes
.DesignTimeOnly)
EditAndContinue\Utilities\Extensions.cs (1)
117
if (textDocumentState.
Attributes
.DesignTimeOnly)
Microsoft.CodeAnalysis.Workspaces (41)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
511
var documentInfo = new DocumentInfo(documentToReload.State.
Attributes
, fileInfo.TextLoader, fileInfo.DocumentServiceProvider);
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)
97
=> ParseOptions?.Kind ??
Attributes
.SourceCodeKind;
100
=>
Attributes
.IsGenerated;
323
Attributes
.SyntaxTreeFilePath,
330
Attributes
,
359
newTree = treeFactory.CreateSyntaxTree(
Attributes
.SyntaxTreeFilePath, options, text: null, existingTree.Encoding, LoadTextOptions.ChecksumAlgorithm, existingRoot);
370
Attributes
.SyntaxTreeFilePath,
377
Attributes
.With(sourceCodeKind: options.Kind),
396
return WithAttributes(
Attributes
.With(sourceCodeKind: kind));
401
Contract.ThrowIfTrue(ReferenceEquals(newAttributes,
Attributes
));
404
if (newAttributes.SyntaxTreeFilePath !=
Attributes
.SyntaxTreeFilePath)
435
Attributes
,
470
Attributes
.SyntaxTreeFilePath,
479
Attributes
,
516
var (text, treeAndVersion) = CreateTreeWithLazyText(newRoot, newTextVersion, newTreeVersion, encoding, LoadTextOptions.ChecksumAlgorithm,
Attributes
, ParseOptions, syntaxTreeFactory);
521
Attributes
,
Workspace\Solution\DocumentState_LinkedFileReuse.cs (2)
71
Attributes
,
96
this.
Attributes
, this.LanguageServices, this.DocumentServiceProvider, this.LoadTextOptions, this.ParseOptions,
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
296
if (documentState.Value.
Attributes
.DesignTimeOnly)
Workspace\Solution\SolutionState.cs (1)
977
var newDocument = oldDocument.WithAttributes(updateAttributes(oldDocument.
Attributes
, arg));
Workspace\Solution\SourceGeneratedDocumentState.cs (3)
217
this.
Attributes
,
239
var newTree = factory.CreateSyntaxTree(
Attributes
.SyntaxTreeFilePath, ParseOptions, sourceText, sourceText.Encoding, sourceText.ChecksumAlgorithm, newRoot);
251
this.
Attributes
,
Workspace\Solution\StateChecksums.cs (1)
524
onAssetFound(Info, state.
Attributes
, arg);
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);
229
=> oldState.
Attributes
!=
Attributes
;
Workspace\Solution\TextDocumentState_Checksum.cs (1)
36
var infoChecksum = this.
Attributes
.Checksum;
Workspace\Workspace.cs (4)
1108
var oldAttributes = oldSolution.GetDocument(documentId)!.State.
Attributes
;
1644
new DocumentInfo(newDoc.DocumentState.
Attributes
, loader: null, documentServiceProvider: newDoc.State.DocumentServiceProvider));
2048
isGenerated: doc.State.
Attributes
.IsGenerated)
2049
.WithDesignTimeOnly(doc.State.
Attributes
.DesignTimeOnly)