26 references to From
GenerateDocumentationAndConfigFiles (3)
Program.cs (2)
933var sourceText = SourceText.From(fileStream); 943var sourceTextUnshipped = SourceText.From(fileStreamUnshipped);
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
175return SourceText.From(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);
Microsoft.CodeAnalysis (3)
EncodedStringText.cs (1)
175return SourceText.From(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);
Text\SourceText.cs (2)
157=> From(stream, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded: false); 427/// <see cref="From(Stream, Encoding, SourceHashAlgorithm, bool, bool)"/>, then the canBeEmbedded arg must have
Microsoft.CodeAnalysis.Analyzers (2)
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
93var source = SourceText.From(stream);
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
175return SourceText.From(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
175return SourceText.From(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
175return SourceText.From(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);
Microsoft.CodeAnalysis.CSharp.Features (1)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
230return new SourceFile(filePath, SourceText.From(stream, encoding: null));
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScript.cs (1)
54return Script.CreateInitialScript<T>(CSharpScriptCompiler.Instance, SourceText.From(code, options?.FileEncoding), options, globalsType, assemblyLoader);
Microsoft.CodeAnalysis.ExternalAccess.HotReload (2)
Api\HotReloadMSBuildWorkspace.cs (2)
222sourceText = SourceText.From(stream, encoding, checksumAlgorithm); 237sourceText = SourceText.From(stream, encoding, checksumAlgorithm);
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\CommittedSolution.cs (1)
454var sourceText = SourceText.From(fileStream, defaultEncoding, checksumAlgorithm);
Microsoft.CodeAnalysis.Razor.Compiler (4)
Language\RazorSourceDocument.cs (4)
66var sourceText = SourceText.From(stream, checksumAlgorithm: SourceHashAlgorithm.Sha256); 90var sourceText = SourceText.From(stream, encoding, checksumAlgorithm: SourceHashAlgorithm.Sha256); 118var sourceText = SourceText.From(stream, encoding, checksumAlgorithm: SourceHashAlgorithm.Sha256); 153var sourceText = SourceText.From(stream, checksumAlgorithm: SourceHashAlgorithm.Sha256);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
241var embeddedText = SourceText.From(stream, encoding: sourceTextInfo.SourceTextEncoding, checksumAlgorithm: sourceTextInfo.HashAlgorithm, canBeEmbedded: true);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
175return SourceText.From(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
130return new Script<TResult>(Compiler, Builder, SourceText.From(code, options.FileEncoding), options, GlobalsType, this);
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
175return SourceText.From(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);
Microsoft.DotNet.HotReload.Utils.Generator (1)
DeltaProject.cs (1)
77updatedSolution = Solution.WithDocumentText (baseDocumentId, SourceText.From (contents, Encoding.UTF8));
Microsoft.DotNet.ProjectTools (1)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
231return new SourceFile(filePath, SourceText.From(stream, encoding: null));
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
175return SourceText.From(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);