Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ VisitExpressions< T >() [2/3]

void System.Linq.Expressions.DebugViewWriter.VisitExpressions< T > ( char open,
char separator,
IReadOnlyList< T > expressions,
Action< T > visit )
inlineprivate

Definition at line 215 of file DebugViewWriter.cs.

216 {
217 Out(open.ToString());
218 if (expressions != null)
219 {
220 Indent();
221 bool flag = true;
222 foreach (T expression in expressions)
223 {
224 if (flag)
225 {
226 if (open == '{' || expressions.Count > 1)
227 {
228 NewLine();
229 }
230 flag = false;
231 }
232 else
233 {
234 Out(separator.ToString(), Flow.NewLine);
235 }
237 }
238 Dedent();
239 }
240 char c = open switch
241 {
242 '(' => ')',
243 '{' => '}',
244 '[' => ']',
245 _ => throw ContractUtils.Unreachable,
246 };
247 if (open == '{')
248 {
249 NewLine();
250 }
251 Out(c.ToString(), Flow.Break);
252 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Linq.Expressions.DebugViewWriter.Dedent(), System.Linq.Expressions.DebugViewWriter.Indent(), System.Linq.Expressions.DebugViewWriter.NewLine(), System.Reflection.Out, and System.Dynamic.Utils.ContractUtils.Unreachable.