From bb3f6e006be7a29d92f1b7e4fff2e02bf871f8dd Mon Sep 17 00:00:00 2001 From: Basoundr_ms Date: Tue, 13 Jan 2015 11:24:58 -0800 Subject: [PATCH] Bugfix# 1082026 This is a formatting case with Initializer Syntax that went unhandled. Testcase added previously ascertained the regression. Now modifying the testcase to handle the regression. Also a CR comment (changeset 1396819) --- src/Workspaces/CSharp/Portable/Formatting/FormattingHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Workspaces/CSharp/Portable/Formatting/FormattingHelpers.cs b/src/Workspaces/CSharp/Portable/Formatting/FormattingHelpers.cs index 8f5854e7c5d..c976aaa7108 100644 --- a/src/Workspaces/CSharp/Portable/Formatting/FormattingHelpers.cs +++ b/src/Workspaces/CSharp/Portable/Formatting/FormattingHelpers.cs @@ -545,7 +545,7 @@ public static bool IsPlusOrMinusExpression(this SyntaxToken token) public static bool IsInterpolation(this SyntaxToken currentToken) { - return currentToken.Parent != null && currentToken.Parent.IsKind(SyntaxKind.Interpolation); + return currentToken.Parent.IsKind(SyntaxKind.Interpolation); } } } -- GitLab