From 99341e944f3276f8742bce0062adea0d63503086 Mon Sep 17 00:00:00 2001 From: hogimn Date: Sun, 15 Sep 2024 08:16:57 +0900 Subject: [PATCH] Simplify name --- SQL.Formatter/Core/DialectConfig.cs | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/SQL.Formatter/Core/DialectConfig.cs b/SQL.Formatter/Core/DialectConfig.cs index 54710b3..81c87ff 100644 --- a/SQL.Formatter/Core/DialectConfig.cs +++ b/SQL.Formatter/Core/DialectConfig.cs @@ -33,18 +33,18 @@ private DialectConfig( List namedPlaceholderTypes, List 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 lineCommentTypes) { @@ -61,7 +61,7 @@ public DialectConfig PlusLineCommentTypes(params string[] lineCommentTypes) public DialectConfig PlusLineCommentTypes(List lineCommentTypes) { return ToBuilder() - .LineCommentTypes(Utils.Concat(this.LineCommentTypes, lineCommentTypes)) + .LineCommentTypes(Utils.Concat(LineCommentTypes, lineCommentTypes)) .Build(); } @@ -80,7 +80,7 @@ public DialectConfig PlusReservedTopLevelWords(params string[] reservedTopLevelW public DialectConfig PlusReservedTopLevelWords(List reservedTopLevelWords) { return ToBuilder() - .ReservedTopLevelWords(Utils.Concat(this.ReservedTopLevelWords, reservedTopLevelWords)) + .ReservedTopLevelWords(Utils.Concat(ReservedTopLevelWords, reservedTopLevelWords)) .Build(); } @@ -99,7 +99,7 @@ public DialectConfig PlusReservedNewlineWords(params string[] reservedNewLineWor public DialectConfig PlusReservedNewlineWords(List reservedNewlineWords) { return ToBuilder() - .ReservedNewlineWords(Utils.Concat(this.ReservedNewlineWords, reservedNewlineWords)) + .ReservedNewlineWords(Utils.Concat(ReservedNewlineWords, reservedNewlineWords)) .Build(); } @@ -118,7 +118,7 @@ public DialectConfig PlusReservedTopLevelWordsNoIndent(params string[] reservedT public DialectConfig PlusReservedTopLevelWordsNoIndent(List reservedTopLevelWordsNoIndent) { return ToBuilder() - .ReservedTopLevelWordsNoIndent(Utils.Concat(this.ReservedTopLevelWordsNoIndent, reservedTopLevelWordsNoIndent)) + .ReservedTopLevelWordsNoIndent(Utils.Concat(ReservedTopLevelWordsNoIndent, reservedTopLevelWordsNoIndent)) .Build(); } @@ -137,7 +137,7 @@ public DialectConfig PlusReservedWords(params string[] reservedWords) public DialectConfig PlusReservedWords(List reservedWords) { return ToBuilder() - .ReservedWords(Utils.Concat(this.ReservedWords, reservedWords)) + .ReservedWords(Utils.Concat(ReservedWords, reservedWords)) .Build(); } @@ -156,7 +156,7 @@ public DialectConfig PlusSpecialWordChars(params string[] specialWordChars) public DialectConfig PlusSpecialWordChars(List specialWordChars) { return ToBuilder() - .SpecialWordChars(Utils.Concat(this.SpecialWordChars, specialWordChars)) + .SpecialWordChars(Utils.Concat(SpecialWordChars, specialWordChars)) .Build(); } @@ -175,7 +175,7 @@ public DialectConfig PlusStringTypes(params string[] stringTypes) public DialectConfig PlusStringTypes(List stringTypes) { return ToBuilder() - .StringTypes(Utils.Concat(this.StringTypes, stringTypes)) + .StringTypes(Utils.Concat(StringTypes, stringTypes)) .Build(); } @@ -194,7 +194,7 @@ public DialectConfig PlusOpenParens(params string[] openParens) public DialectConfig PlusOpenParens(List openParens) { return ToBuilder() - .OpenParens(Utils.Concat(this.OpenParens, openParens)) + .OpenParens(Utils.Concat(OpenParens, openParens)) .Build(); } @@ -213,7 +213,7 @@ public DialectConfig PlusCloseParens(params string[] closeParens) public DialectConfig PlusCloseParens(List closeParens) { return ToBuilder() - .CloseParens(Utils.Concat(this.CloseParens, closeParens)) + .CloseParens(Utils.Concat(CloseParens, closeParens)) .Build(); } @@ -232,7 +232,7 @@ public DialectConfig PlusIndexedPlaceholderTypes(params string[] indexedPlacehol public DialectConfig PlusIndexedPlaceholderTypes(List indexedPlaceholderTypes) { return ToBuilder() - .IndexedPlaceholderTypes(Utils.Concat(this.IndexedPlaceholderTypes, indexedPlaceholderTypes)) + .IndexedPlaceholderTypes(Utils.Concat(IndexedPlaceholderTypes, indexedPlaceholderTypes)) .Build(); } @@ -251,7 +251,7 @@ public DialectConfig PlusNamedPlaceholderTypes(params string[] namedPlaceholderT public DialectConfig PlusNamedPlaceholderTypes(List namedPlaceholderTypes) { return ToBuilder() - .NamedPlaceholderTypes(Utils.Concat(this.NamedPlaceholderTypes, namedPlaceholderTypes)) + .NamedPlaceholderTypes(Utils.Concat(NamedPlaceholderTypes, namedPlaceholderTypes)) .Build(); } @@ -270,7 +270,7 @@ public DialectConfig PlusOperators(params string[] operators) public DialectConfig PlusOperators(List operators) { return ToBuilder() - .Operators(Utils.Concat(this.Operators, operators)) + .Operators(Utils.Concat(Operators, operators)) .Build(); }