8 references to EncodedStringText
Microsoft.CodeAnalysis (8)
CommandLine\CommonCompiler.cs (5)
71
/// Fallback encoding that is lazily retrieved if needed. If <see cref="
EncodedStringText
.CreateFallbackEncoding"/> is
74
private readonly Lazy<Encoding> _fallbackEncoding = new Lazy<Encoding>(
EncodedStringText
.CreateFallbackEncoding);
277
return
EncodedStringText
.Create(data, _fallbackEncoding, Arguments.Encoding, Arguments.ChecksumAlgorithm, canBeEmbedded: EmbeddedSourcePaths.Contains(file.Path));
282
return
EncodedStringText
.Create(data, _fallbackEncoding, Arguments.Encoding, Arguments.ChecksumAlgorithm, canBeEmbedded: EmbeddedSourcePaths.Contains(file.Path));
408
if (
EncodedStringText
.TryGetBytesFromStream(stream, out bytes))
Compilation\SourceReferenceResolver.cs (1)
69
return
EncodedStringText
.Create(stream);
EncodedStringText.cs (2)
231
=>
EncodedStringText
.Create(stream, getEncoding, defaultEncoding, checksumAlgorithm, canBeEmbedded);
234
=>
EncodedStringText
.Decode(data, encoding, checksumAlgorithm, throwIfBinaryDetected, canBeEmbedded);