From 23f6afaca63f47afeb98862ac78487cbf1d036c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=BD=D0=B4=D0=B0=D1=80=D0=B5=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Sat, 13 Jun 2015 12:50:24 +0200 Subject: [PATCH] code formatting of T->T --- CodeCompletion/CodeFormatter.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CodeCompletion/CodeFormatter.cs b/CodeCompletion/CodeFormatter.cs index 51859177f..9372b8cc8 100644 --- a/CodeCompletion/CodeFormatter.cs +++ b/CodeCompletion/CodeFormatter.cs @@ -2854,6 +2854,34 @@ namespace CodeFormatters visit_node(_sequence_type.elements_type); } + public override void visit(modern_proc_type _modern_proc_type) + { + if (_modern_proc_type.aloneparam != null) + { + visit_node(_modern_proc_type.aloneparam); + add_space_before = false; + add_space_after = false; + visit_node(_modern_proc_type.res); + } + else + { + + if (_modern_proc_type.el != null && _modern_proc_type.el.enumerators != null) + { + sb.Append("("); + for (int i = 0; i < _modern_proc_type.el.enumerators.Count; i++) + { + visit_node(_modern_proc_type.el.enumerators[i]); + } + } + else + read_from_beg_pos = true; + add_space_before = false; + add_space_after = false; + visit_node(_modern_proc_type.res); + } + } + #endregion } } \ No newline at end of file