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