Skip to content

Commit

Permalink
Simplify name
Browse files Browse the repository at this point in the history
  • Loading branch information
hogimn committed Sep 14, 2024
1 parent f5a8e1b commit 99341e9
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions SQL.Formatter/Core/DialectConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ private DialectConfig(
List<string> namedPlaceholderTypes,
List<string> operators)
{
this.LineCommentTypes = Utils.NullToEmpty(lineCommentTypes);
this.ReservedTopLevelWords = Utils.NullToEmpty(reservedTopLevelWords);
this.ReservedTopLevelWordsNoIndent = Utils.NullToEmpty(reservedTopLevelWordsNoIndent);
this.ReservedNewlineWords = Utils.NullToEmpty(reservedNewlineWords);
this.ReservedWords = Utils.NullToEmpty(reservedWords);
this.SpecialWordChars = Utils.NullToEmpty(specialWordChars);
this.StringTypes = Utils.NullToEmpty(stringTypes);
this.OpenParens = Utils.NullToEmpty(openParens);
this.CloseParens = Utils.NullToEmpty(closeParens);
this.IndexedPlaceholderTypes = Utils.NullToEmpty(indexedPlaceholderTypes);
this.NamedPlaceholderTypes = Utils.NullToEmpty(namedPlaceholderTypes);
this.Operators = Utils.NullToEmpty(operators);
LineCommentTypes = Utils.NullToEmpty(lineCommentTypes);
ReservedTopLevelWords = Utils.NullToEmpty(reservedTopLevelWords);
ReservedTopLevelWordsNoIndent = Utils.NullToEmpty(reservedTopLevelWordsNoIndent);
ReservedNewlineWords = Utils.NullToEmpty(reservedNewlineWords);
ReservedWords = Utils.NullToEmpty(reservedWords);
SpecialWordChars = Utils.NullToEmpty(specialWordChars);
StringTypes = Utils.NullToEmpty(stringTypes);
OpenParens = Utils.NullToEmpty(openParens);
CloseParens = Utils.NullToEmpty(closeParens);
IndexedPlaceholderTypes = Utils.NullToEmpty(indexedPlaceholderTypes);
NamedPlaceholderTypes = Utils.NullToEmpty(namedPlaceholderTypes);
Operators = Utils.NullToEmpty(operators);
}
public DialectConfig WithLineCommentTypes(List<string> lineCommentTypes)
{
Expand All @@ -61,7 +61,7 @@ public DialectConfig PlusLineCommentTypes(params string[] lineCommentTypes)
public DialectConfig PlusLineCommentTypes(List<string> lineCommentTypes)
{
return ToBuilder()
.LineCommentTypes(Utils.Concat(this.LineCommentTypes, lineCommentTypes))
.LineCommentTypes(Utils.Concat(LineCommentTypes, lineCommentTypes))
.Build();
}

Expand All @@ -80,7 +80,7 @@ public DialectConfig PlusReservedTopLevelWords(params string[] reservedTopLevelW
public DialectConfig PlusReservedTopLevelWords(List<string> reservedTopLevelWords)
{
return ToBuilder()
.ReservedTopLevelWords(Utils.Concat(this.ReservedTopLevelWords, reservedTopLevelWords))
.ReservedTopLevelWords(Utils.Concat(ReservedTopLevelWords, reservedTopLevelWords))
.Build();
}

Expand All @@ -99,7 +99,7 @@ public DialectConfig PlusReservedNewlineWords(params string[] reservedNewLineWor
public DialectConfig PlusReservedNewlineWords(List<string> reservedNewlineWords)
{
return ToBuilder()
.ReservedNewlineWords(Utils.Concat(this.ReservedNewlineWords, reservedNewlineWords))
.ReservedNewlineWords(Utils.Concat(ReservedNewlineWords, reservedNewlineWords))
.Build();
}

Expand All @@ -118,7 +118,7 @@ public DialectConfig PlusReservedTopLevelWordsNoIndent(params string[] reservedT
public DialectConfig PlusReservedTopLevelWordsNoIndent(List<string> reservedTopLevelWordsNoIndent)
{
return ToBuilder()
.ReservedTopLevelWordsNoIndent(Utils.Concat(this.ReservedTopLevelWordsNoIndent, reservedTopLevelWordsNoIndent))
.ReservedTopLevelWordsNoIndent(Utils.Concat(ReservedTopLevelWordsNoIndent, reservedTopLevelWordsNoIndent))
.Build();
}

Expand All @@ -137,7 +137,7 @@ public DialectConfig PlusReservedWords(params string[] reservedWords)
public DialectConfig PlusReservedWords(List<string> reservedWords)
{
return ToBuilder()
.ReservedWords(Utils.Concat(this.ReservedWords, reservedWords))
.ReservedWords(Utils.Concat(ReservedWords, reservedWords))
.Build();
}

Expand All @@ -156,7 +156,7 @@ public DialectConfig PlusSpecialWordChars(params string[] specialWordChars)
public DialectConfig PlusSpecialWordChars(List<string> specialWordChars)
{
return ToBuilder()
.SpecialWordChars(Utils.Concat(this.SpecialWordChars, specialWordChars))
.SpecialWordChars(Utils.Concat(SpecialWordChars, specialWordChars))
.Build();
}

Expand All @@ -175,7 +175,7 @@ public DialectConfig PlusStringTypes(params string[] stringTypes)
public DialectConfig PlusStringTypes(List<string> stringTypes)
{
return ToBuilder()
.StringTypes(Utils.Concat(this.StringTypes, stringTypes))
.StringTypes(Utils.Concat(StringTypes, stringTypes))
.Build();
}

Expand All @@ -194,7 +194,7 @@ public DialectConfig PlusOpenParens(params string[] openParens)
public DialectConfig PlusOpenParens(List<string> openParens)
{
return ToBuilder()
.OpenParens(Utils.Concat(this.OpenParens, openParens))
.OpenParens(Utils.Concat(OpenParens, openParens))
.Build();
}

Expand All @@ -213,7 +213,7 @@ public DialectConfig PlusCloseParens(params string[] closeParens)
public DialectConfig PlusCloseParens(List<string> closeParens)
{
return ToBuilder()
.CloseParens(Utils.Concat(this.CloseParens, closeParens))
.CloseParens(Utils.Concat(CloseParens, closeParens))
.Build();
}

Expand All @@ -232,7 +232,7 @@ public DialectConfig PlusIndexedPlaceholderTypes(params string[] indexedPlacehol
public DialectConfig PlusIndexedPlaceholderTypes(List<string> indexedPlaceholderTypes)
{
return ToBuilder()
.IndexedPlaceholderTypes(Utils.Concat(this.IndexedPlaceholderTypes, indexedPlaceholderTypes))
.IndexedPlaceholderTypes(Utils.Concat(IndexedPlaceholderTypes, indexedPlaceholderTypes))
.Build();
}

Expand All @@ -251,7 +251,7 @@ public DialectConfig PlusNamedPlaceholderTypes(params string[] namedPlaceholderT
public DialectConfig PlusNamedPlaceholderTypes(List<string> namedPlaceholderTypes)
{
return ToBuilder()
.NamedPlaceholderTypes(Utils.Concat(this.NamedPlaceholderTypes, namedPlaceholderTypes))
.NamedPlaceholderTypes(Utils.Concat(NamedPlaceholderTypes, namedPlaceholderTypes))
.Build();
}

Expand All @@ -270,7 +270,7 @@ public DialectConfig PlusOperators(params string[] operators)
public DialectConfig PlusOperators(List<string> operators)
{
return ToBuilder()
.Operators(Utils.Concat(this.Operators, operators))
.Operators(Utils.Concat(Operators, operators))
.Build();
}

Expand Down

0 comments on commit 99341e9

Please sign in to comment.