29 references to Create
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\CommittedSolution.cs (1)
291
loader: TextLoader.From(TextAndVersion.
Create
(sourceText, sourceTextVersion, document.Name)),
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
196
var textAndVersion = TextAndVersion.
Create
(sourceText, VersionStamp.Default, filePath);
Microsoft.CodeAnalysis.Workspaces (27)
Serialization\SerializableSourceText.cs (2)
235
=> TextAndVersion.
Create
(await this.SerializableSourceText.GetTextAsync(cancellationToken).ConfigureAwait(false), _version);
238
=> TextAndVersion.
Create
(this.SerializableSourceText.GetText(cancellationToken), _version);
Workspace\AdhocWorkspace.cs (4)
126
var loader = TextLoader.From(TextAndVersion.
Create
(text, VersionStamp.Create()));
169
var loader = TextLoader.From(TextAndVersion.
Create
(text, version, doc.FilePath));
197
var loader = TextLoader.From(TextAndVersion.
Create
(text, version, doc.FilePath));
225
var loader = TextLoader.From(TextAndVersion.
Create
(text, version, doc.FilePath));
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
500
=> TextAndVersion.
Create
(_textContainer.CurrentText, VersionStamp.Create(), _filePath);
Workspace\Solution\DocumentState_TreeTextSource.cs (3)
32
return TextAndVersion.
Create
(text, _version);
38
return TextAndVersion.
Create
(text, _version);
45
value = TextAndVersion.
Create
(text, _version);
Workspace\Solution\FileTextLoader.cs (2)
184
return TextAndVersion.
Create
(text, version, t.self.Path);
208
return TextAndVersion.
Create
(text, version, t.self.Path);
Workspace\Solution\Solution.cs (2)
1040
loader: TextLoader.From(TextAndVersion.
Create
(text, VersionStamp.Create(), name)),
1154
var loader = TextLoader.From(TextAndVersion.
Create
(text, version, name));
Workspace\Solution\SourceGeneratedDocumentState.cs (2)
91
var textAndVersion = TextAndVersion.
Create
(generatedSourceText, VersionStamp.Create());
242
var textAndVersion = TextAndVersion.
Create
(sourceText, VersionStamp.Create());
Workspace\Solution\TextDocumentState.cs (2)
143
var newTextAndVersion = TextAndVersion.
Create
(newText, newVersion, FilePath);
159
: CreateStrongText(TextAndVersion.
Create
(SourceText.From(string.Empty, encoding: null, loadTextOptions.ChecksumAlgorithm), VersionStamp.Default, filePath));
Workspace\Solution\TextLoader.cs (1)
230
=> TextAndVersion.
Create
(_container.CurrentText, _version, _filePath);
Workspace\Workspace.cs (5)
2038
=> CreateDocumentInfoWithoutText(doc).WithTextLoader(TextLoader.From(TextAndVersion.
Create
(doc.GetTextSynchronously(CancellationToken.None), VersionStamp.Create(), doc.FilePath)));
2205
this.OnDocumentAdded(info.WithTextLoader(TextLoader.From(TextAndVersion.
Create
(text, VersionStamp.Create()))));
2249
this.OnAdditionalDocumentAdded(info.WithTextLoader(TextLoader.From(TextAndVersion.
Create
(text, VersionStamp.Create()))));
2282
this.OnAnalyzerConfigDocumentAdded(info.WithTextLoader(TextLoader.From(TextAndVersion.
Create
(text, VersionStamp.Create()))));
2304
this.OnAnalyzerConfigDocumentTextLoaderChanged(id, TextLoader.From(TextAndVersion.
Create
(text, VersionStamp.Create())));
Workspace\Workspace_Editor.cs (3)
491
? TextAndVersion.
Create
(newText, version, filePath)
492
: TextAndVersion.
Create
(newText, version.GetNewerVersion(), filePath);
597
var newTextAndVersion = TextAndVersion.
Create
(newText, version, oldDocument.FilePath);