提交 5371e72d 编写于 作者: J Julien Couvreur

Fixing a merge conflict

上级 99e75d92
......@@ -1551,11 +1551,11 @@ public static bool HasNames(this TupleExpressionSyntax tuple)
return true;
}
if (token.IsKind(SyntaxKind.OpenParenToken))
{
// for ( |
// foreach ( |
// using ( |
if (token.IsKind(SyntaxKind.OpenParenToken))
{
var previous = token.GetPreviousToken(includeSkipped: true);
if (previous.IsKind(SyntaxKind.ForKeyword) ||
previous.IsKind(SyntaxKind.ForEachKeyword) ||
......@@ -1563,6 +1563,18 @@ public static bool HasNames(this TupleExpressionSyntax tuple)
{
return true;
}
// foreach await ( |
// using await ( |
if (previous.IsKind(SyntaxKind.AwaitKeyword))
{
var secondPrevious = previous.GetPreviousToken(includeSkipped: true);
if (secondPrevious.IsKind(SyntaxKind.ForEachKeyword, SyntaxKind.UsingKeyword))
{
return true;
}
}
}
// from |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册