16 references to ObjectDisplay
Microsoft.CodeAnalysis.CSharp (16)
Binder\PatternExplainer.cs (3)
735
return
ObjectDisplay
.FormatPrimitive(value.Value, ObjectDisplayOptions.EscapeNonPrintableCharacters | ObjectDisplayOptions.IncludeTypeSuffix | ObjectDisplayOptions.UseQuotes);
743
var x =>
ObjectDisplay
.FormatPrimitive(x, ObjectDisplayOptions.IncludeTypeSuffix)
752
var x =>
ObjectDisplay
.FormatPrimitive(x, ObjectDisplayOptions.IncludeTypeSuffix)
Parser\Lexer.cs (1)
746
var messageText = isEscaped ? info.Text :
ObjectDisplay
.FormatLiteral(info.Text, ObjectDisplayOptions.EscapeNonPrintableCharacters);
SymbolDisplay\SymbolDisplay.cs (3)
311
return
ObjectDisplay
.FormatPrimitive(obj, options);
327
return
ObjectDisplay
.FormatLiteral(value, options);
343
return
ObjectDisplay
.FormatLiteral(c, options);
Syntax\SyntaxFactory.cs (8)
353
return Literal(
ObjectDisplay
.FormatLiteral(value, ObjectDisplayOptions.None), value);
384
return Literal(
ObjectDisplay
.FormatLiteral(value, ObjectDisplayOptions.IncludeTypeSuffix), value);
415
return Literal(
ObjectDisplay
.FormatLiteral(value, ObjectDisplayOptions.IncludeTypeSuffix), value);
446
return Literal(
ObjectDisplay
.FormatLiteral(value, ObjectDisplayOptions.IncludeTypeSuffix), value);
477
return Literal(
ObjectDisplay
.FormatLiteral(value, ObjectDisplayOptions.IncludeTypeSuffix), value);
508
return Literal(
ObjectDisplay
.FormatLiteral(value, ObjectDisplayOptions.None), value);
539
return Literal(
ObjectDisplay
.FormatLiteral(value, ObjectDisplayOptions.IncludeTypeSuffix), value);
601
return Literal(
ObjectDisplay
.FormatLiteral(value, ObjectDisplayOptions.UseQuotes | ObjectDisplayOptions.EscapeNonPrintableCharacters), value);
Utilities\ValueSetFactory.CharTC.cs (1)
53
return
ObjectDisplay
.FormatPrimitive(c, ObjectDisplayOptions.EscapeNonPrintableCharacters | ObjectDisplayOptions.UseQuotes);