Skip to content

Commit b0fe53b

Browse files
Formatting only
1 parent dd1c792 commit b0fe53b

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

CodeConverter/CSharp/VisualBasicEqualityComparison.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -204,23 +204,23 @@ private static ExpressionSyntax NegateIfNeeded(VBSyntax.BinaryExpressionSyntax n
204204

205205
public (ExpressionSyntax csLeft, ExpressionSyntax csRight) AdjustForVbStringComparison(VBSyntax.ExpressionSyntax vbLeft, ExpressionSyntax csLeft, TypeInfo lhsTypeInfo, VBSyntax.ExpressionSyntax vbRight, ExpressionSyntax csRight, TypeInfo rhsTypeInfo)
206206
{
207-
if (OptionCompareTextCaseInsensitive) {
208-
ExtraUsingDirectives.Add("System.Globalization");
209-
(csLeft, csRight) = (VbCoerceToString(csLeft, lhsTypeInfo), VbCoerceToString(csRight, rhsTypeInfo));
210-
var compareOptions = SyntaxFactory.Argument(GetCompareTextCaseInsensitiveCompareOptions());
211-
var compareString = SyntaxFactory.InvocationExpression(ValidSyntaxFactory.MemberAccess(nameof(CultureInfo), nameof(CultureInfo.CurrentCulture),
212-
nameof(CultureInfo.CompareInfo), nameof(CompareInfo.Compare)),
213-
SyntaxFactory.ArgumentList(SyntaxFactory.SeparatedList(new[]
214-
{SyntaxFactory.Argument(csLeft), SyntaxFactory.Argument(csRight), compareOptions})));
207+
if (OptionCompareTextCaseInsensitive) {
208+
ExtraUsingDirectives.Add("System.Globalization");
209+
(csLeft, csRight) = (VbCoerceToString(csLeft, lhsTypeInfo), VbCoerceToString(csRight, rhsTypeInfo));
210+
var compareOptions = SyntaxFactory.Argument(GetCompareTextCaseInsensitiveCompareOptions());
211+
var compareString = SyntaxFactory.InvocationExpression(ValidSyntaxFactory.MemberAccess(nameof(CultureInfo), nameof(CultureInfo.CurrentCulture),
212+
nameof(CultureInfo.CompareInfo), nameof(CompareInfo.Compare)),
213+
SyntaxFactory.ArgumentList(SyntaxFactory.SeparatedList(new[]
214+
{SyntaxFactory.Argument(csLeft), SyntaxFactory.Argument(csRight), compareOptions})));
215215

216216
csLeft = compareString;
217-
csRight = SyntaxFactory.LiteralExpression(SyntaxKind.NumericLiteralExpression,
218-
SyntaxFactory.Literal(0));
219-
} else {
220-
(csLeft, csRight) = VbCoerceToString(vbLeft, csLeft, lhsTypeInfo, vbRight, csRight, rhsTypeInfo);
221-
}
217+
csRight = SyntaxFactory.LiteralExpression(SyntaxKind.NumericLiteralExpression,
218+
SyntaxFactory.Literal(0));
219+
} else {
220+
(csLeft, csRight) = VbCoerceToString(vbLeft, csLeft, lhsTypeInfo, vbRight, csRight, rhsTypeInfo);
221+
}
222222

223-
return (csLeft, csRight);
223+
return (csLeft, csRight);
224224
}
225225

226226
public ExpressionSyntax GetFullExpressionForVbObjectComparison(VBSyntax.BinaryExpressionSyntax node, ExpressionSyntax lhs, ExpressionSyntax rhs)

0 commit comments

Comments
 (0)