提交 e84d4c60 编写于 作者: P Paul Chen

White space clean up.

上级 04a4404f
......@@ -96,8 +96,7 @@ private static bool IsScopeBlock(SyntaxNode node)
return node.IsKind(SyntaxKind.Block)
&& (parent.IsKind(SyntaxKind.Block)
|| parent.IsKind(SyntaxKind.SwitchSection)
|| parent.IsKind(SyntaxKind.GlobalStatement
));
|| parent.IsKind(SyntaxKind.GlobalStatement));
}
private static void MarkInterestedSpanNearbyScopeBlock(SyntaxNode block, SyntaxToken openBrace, ref int spanStart, ref int spanEnd)
......
......@@ -338,13 +338,13 @@ protected override void TestInScript(string code, string expectedContent, string
string expectedDocumentationComment = null,
CSharpParseOptions parseOptions = null)
{
using ( var workspace = CSharpWorkspaceFactory.CreateWorkspaceFromFile(code, parseOptions))
using (var workspace = CSharpWorkspaceFactory.CreateWorkspaceFromFile(code, parseOptions))
{
var testDocument = workspace.Documents.Single();
var position = testDocument.CursorPosition.Value;
var document = workspace.CurrentSolution.Projects.First().Documents.First();
if ( string.IsNullOrEmpty(expectedContent) )
if (string.IsNullOrEmpty(expectedContent))
{
AssertNoContent(workspace, document, position);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册