1 write to LoadTextOptions
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentState.cs (1)
38
LoadTextOptions
= loadTextOptions;
30 references to LoadTextOptions
Microsoft.CodeAnalysis.Workspaces (30)
Workspace\Solution\AdditionalDocumentState.cs (3)
40
LoadTextOptions
);
48
LoadTextOptions
);
66
this.
LoadTextOptions
);
Workspace\Solution\AnalyzerConfigDocumentState.cs (3)
46
LoadTextOptions
,
56
LoadTextOptions
,
76
this.
LoadTextOptions
);
Workspace\Solution\DocumentState.cs (13)
309
if (
LoadTextOptions
== newLoadTextOptions)
361
newTree = treeFactory.CreateSyntaxTree(Attributes.SyntaxTreeFilePath, options, text: null, existingTree.Encoding,
LoadTextOptions
.ChecksumAlgorithm, existingRoot);
371
LoadTextOptions
,
381
LoadTextOptions
,
413
LoadTextOptions
,
428
LoadTextOptions
,
439
LoadTextOptions
,
465
newTreeSource = CreateLazyIncrementallyParsedTree(TreeSource, newTextSource,
LoadTextOptions
);
471
LoadTextOptions
,
483
LoadTextOptions
,
504
var (text, treeAndVersion) = CreateTreeWithLazyText(newRoot, newTextVersion, newTreeVersion, encoding,
LoadTextOptions
.ChecksumAlgorithm, Attributes, ParseOptions, syntaxTreeFactory);
511
LoadTextOptions
,
569
if (TextAndVersionSource.TryGetValue(
LoadTextOptions
, out var textAndVersion))
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
188
this.
LoadTextOptions
,
Workspace\Solution\TextDocumentState.cs (10)
82
if (this.TextAndVersionSource.TryGetValue(
LoadTextOptions
, out var textAndVersion))
95
=> TextAndVersionSource.TryGetVersion(
LoadTextOptions
, out version);
98
=> TextAndVersionSource.TryGetValue(
LoadTextOptions
, out textAndVersion);
116
var textAndVersion = this.TextAndVersionSource.GetValue(
LoadTextOptions
, cancellationToken);
122
var textAndVersion = this.TextAndVersionSource.GetValue(
LoadTextOptions
, cancellationToken);
156
var newTextSource = CreateTextAndVersionSource(SolutionServices, loader, FilePath,
LoadTextOptions
, mode);
188
if (this.TextAndVersionSource.TryGetValue(
LoadTextOptions
, out var textAndVersion))
194
return new ValueTask<TextAndVersion>(TextAndVersionSource.GetValueAsync(
LoadTextOptions
, cancellationToken));
203
if (this.TextAndVersionSource.TryGetValue(
LoadTextOptions
, out var textAndVersion))
212
=> this.TextAndVersionSource.GetVersionAsync(
LoadTextOptions
, cancellationToken);