提交 9137605d 编写于 作者: C Cyrus Najmabadi

Simplify

上级 b93ad10b
......@@ -17,12 +17,8 @@ protected override bool IsValidContext(int position, CSharpSyntaxContext context
{
var token = context.TargetToken;
if (token.Kind() != SyntaxKind.OpenBracketToken)
{
return false;
}
if (token.Parent.Kind() == SyntaxKind.AttributeList)
if (token.Kind() == SyntaxKind.OpenBracketToken &&
token.Parent.Kind() == SyntaxKind.AttributeList)
{
var attributeList = token.Parent;
var parentSyntax = attributeList.Parent;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册