35 references to ObjectDisplayOptions
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (35)
src\Compilers\Core\Portable\SymbolDisplay\ObjectDisplayExtensions.cs (3)
12
/// Determines if a flag is set on the <see cref="
ObjectDisplayOptions
"/> enum.
17
internal static bool IncludesOption(this
ObjectDisplayOptions
options,
ObjectDisplayOptions
flag)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.cs (4)
44
var
options = useQuotes
45
?
ObjectDisplayOptions
.UseQuotes |
ObjectDisplayOptions
.EscapeNonPrintableCharacters
46
:
ObjectDisplayOptions
.None;
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (28)
31
private string GetValueString(DkmClrValue value, DkmInspectionContext inspectionContext,
ObjectDisplayOptions
options, GetValueFlags flags)
40
options |=
ObjectDisplayOptions
.UseHexadecimalNumbers;
68
FormatLiteral((char)value.HostObjectValue, options |
ObjectDisplayOptions
.IncludeCodePoints),
75
FormatPrimitive(value, options & ~(
ObjectDisplayOptions
.UseQuotes |
ObjectDisplayOptions
.EscapeNonPrintableCharacters), inspectionContext),
101
var tmp = FormatPrimitive(value,
ObjectDisplayOptions
.UseHexadecimalNumbers, inspectionContext); // Always in hex.
111
: GetValueString(nullableValue, inspectionContext,
ObjectDisplayOptions
.None, GetValueFlags.IncludeTypeName);
124
return FormatPrimitiveObject(intPtr,
ObjectDisplayOptions
.UseHexadecimalNumbers);
129
return FormatPrimitiveObject(intPtr,
ObjectDisplayOptions
.UseHexadecimalNumbers);
143
return FormatPrimitiveObject(uIntPtr,
ObjectDisplayOptions
.UseHexadecimalNumbers);
148
return FormatPrimitiveObject(uIntPtr,
ObjectDisplayOptions
.UseHexadecimalNumbers);
179
private string GetValueStringForCharacter(DkmClrValue value, DkmInspectionContext inspectionContext,
ObjectDisplayOptions
options)
184
options |=
ObjectDisplayOptions
.UseHexadecimalNumbers;
272
private string GetEnumDisplayString(Type lmrType, DkmClrValue value,
ObjectDisplayOptions
options, bool includeTypeName, DkmInspectionContext inspectionContext)
421
return this.GetValueString(value, inspectionContext,
ObjectDisplayOptions
.None, GetValueFlags.IncludeTypeName);
425
return this.GetValueString(value, inspectionContext,
ObjectDisplayOptions
.IncludeTypeSuffix, GetValueFlags.None);
434
return this.GetValueString(value, inspectionContext,
ObjectDisplayOptions
.UseQuotes |
ObjectDisplayOptions
.EscapeNonPrintableCharacters, GetValueFlags.None);
439
return this.GetValueStringForCharacter(value, inspectionContext,
ObjectDisplayOptions
.UseQuotes |
ObjectDisplayOptions
.EscapeNonPrintableCharacters);
445
private string FormatPrimitive(DkmClrValue value,
ObjectDisplayOptions
options, DkmInspectionContext inspectionContext)
479
internal abstract string GetArrayDisplayString(DkmClrAppDomain appDomain, Type lmrType, ReadOnlyCollection<int> sizes, ReadOnlyCollection<int> lowerBounds,
ObjectDisplayOptions
options);
485
internal abstract string GetNamesForFlagsEnumValue(ArrayBuilder<EnumField> fields, object value, ulong underlyingValue,
ObjectDisplayOptions
options, Type typeToDisplayOpt);
487
internal abstract string GetNameForEnumValue(ArrayBuilder<EnumField> fields, object value, ulong underlyingValue,
ObjectDisplayOptions
options, Type typeToDisplayOpt);
493
internal abstract string FormatLiteral(char c,
ObjectDisplayOptions
options);
495
internal abstract string FormatLiteral(int value,
ObjectDisplayOptions
options);
497
internal abstract string FormatPrimitiveObject(object value,
ObjectDisplayOptions
options);
499
internal abstract string FormatString(string str,
ObjectDisplayOptions
options);