@@ -12,19 +12,22 @@ public class FormatConfig
12
12
public readonly Params parameters ;
13
13
public readonly bool uppercase ;
14
14
public readonly int linesBetweenQueries ;
15
+ public readonly bool skipWhitespaceNearBlockParentheses ;
15
16
16
17
public FormatConfig (
17
18
string indent ,
18
19
int maxColumnLength ,
19
20
Params parameters ,
20
21
bool uppercase ,
21
- int linesBetweenQueries )
22
+ int linesBetweenQueries ,
23
+ bool skipWhitespaceNearBlockParentheses )
22
24
{
23
25
this . indent = indent ;
24
26
this . maxColumnLength = maxColumnLength ;
25
27
this . parameters = parameters == null ? Params . Empty : parameters ;
26
28
this . uppercase = uppercase ;
27
29
this . linesBetweenQueries = linesBetweenQueries ;
30
+ this . skipWhitespaceNearBlockParentheses = skipWhitespaceNearBlockParentheses ;
28
31
}
29
32
30
33
public static FormatConfigBuilder Builder ( )
@@ -39,6 +42,7 @@ public class FormatConfigBuilder
39
42
private Params parameters ;
40
43
private bool uppercase ;
41
44
private int linesBetweenQueries ;
45
+ private bool skipWhitespaceNearBlockParentheses ;
42
46
43
47
public FormatConfigBuilder ( )
44
48
{
@@ -84,10 +88,21 @@ public FormatConfigBuilder LinesBetweenQueries(int linesBetweenQueries)
84
88
return this ;
85
89
}
86
90
91
+ public FormatConfigBuilder SkipWhitespaceNearBlockParentheses ( bool skipWhitespaceNearBlockParentheses )
92
+ {
93
+ this . skipWhitespaceNearBlockParentheses = skipWhitespaceNearBlockParentheses ;
94
+ return this ;
95
+ }
96
+
87
97
public FormatConfig Build ( )
88
98
{
89
99
return new FormatConfig (
90
- indent , maxColumnLength , parameters , uppercase , linesBetweenQueries ) ;
100
+ indent ,
101
+ maxColumnLength ,
102
+ parameters ,
103
+ uppercase ,
104
+ linesBetweenQueries ,
105
+ skipWhitespaceNearBlockParentheses ) ;
91
106
}
92
107
}
93
108
}
0 commit comments