30 references to MemberDisplayFormat
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (5)
ObjectFormatterTests.cs (1)
356
MemberDisplayFormat =
MemberDisplayFormat
.SingleLine,
PrintOptionsTests.cs (4)
33
Assert.Throws<ArgumentOutOfRangeException>(() => new PrintOptions().MemberDisplayFormat = (
MemberDisplayFormat
)(-1));
65
options.MemberDisplayFormat =
MemberDisplayFormat
.Hidden;
68
options.MemberDisplayFormat =
MemberDisplayFormat
.SingleLine;
71
options.MemberDisplayFormat =
MemberDisplayFormat
.SeparateLines;
Microsoft.CodeAnalysis.Scripting (18)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (13)
32
private
MemberDisplayFormat
_memberDisplayFormat;
51
MemberDisplayFormat
memberDisplayFormat)
82
if (!isRoot && _memberDisplayFormat ==
MemberDisplayFormat
.SeparateLines)
84
_memberDisplayFormat =
MemberDisplayFormat
.SingleLine;
188
MemberDisplayFormat
memberFormat = _memberDisplayFormat;
190
if (memberFormat ==
MemberDisplayFormat
.Hidden)
195
memberFormat =
MemberDisplayFormat
.SingleLine;
203
bool includeNonPublic = memberFormat ==
MemberDisplayFormat
.SeparateLines;
204
bool inlineMembers = memberFormat ==
MemberDisplayFormat
.SingleLine;
569
FormatMultidimensionalArrayElements(result, array, inline: _memberDisplayFormat !=
MemberDisplayFormat
.SeparateLines);
574
FormatSequenceMembers(result, array, inline: _memberDisplayFormat !=
MemberDisplayFormat
.SeparateLines);
831
MemberDisplayFormat
oldMemberDisplayFormat = _memberDisplayFormat;
834
_memberDisplayFormat =
MemberDisplayFormat
.Hidden;
Hosting\ObjectFormatter\MemberDisplayFormat.cs (3)
36
internal static bool IsValid(this
MemberDisplayFormat
value)
38
return value is >=
MemberDisplayFormat
.SingleLine and <=
MemberDisplayFormat
.Hidden;
Hosting\PrintOptions.cs (2)
15
private
MemberDisplayFormat
_memberDisplayFormat;
54
public
MemberDisplayFormat
MemberDisplayFormat
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
ObjectFormatterTestBase.cs (3)
15
protected static PrintOptions SingleLineOptions => new PrintOptions { MemberDisplayFormat =
MemberDisplayFormat
.SingleLine };
16
protected static PrintOptions SeparateLinesOptions => new PrintOptions { MemberDisplayFormat =
MemberDisplayFormat
.SeparateLines, MaximumOutputLength = int.MaxValue };
17
protected static PrintOptions HiddenOptions => new PrintOptions { MemberDisplayFormat =
MemberDisplayFormat
.Hidden };
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (4)
PrintOptionsTests.vb (4)
35
options.MemberDisplayFormat = CType(-1,
MemberDisplayFormat
)
73
options.MemberDisplayFormat =
MemberDisplayFormat
.Hidden
76
options.MemberDisplayFormat =
MemberDisplayFormat
.SingleLine
79
options.MemberDisplayFormat =
MemberDisplayFormat
.SeparateLines