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