提交 1b2a5fd4 编写于 作者: V Victor Zaytsev

Fixed review notes.

上级 32f3bfbe
......@@ -183,7 +183,15 @@ private static bool InvalidLevel(int? level)
case SyntaxKind.GetAccessorDeclaration:
{
var t = (AccessorDeclarationSyntax)node;
builder.Add(GetDeclarationInfo(model, node, getSymbol, t.Body ?? (SyntaxNode)t.ExpressionBody, cancellationToken));
if (t.Body != null && t.ExpressionBody != null)
{
builder.Add(GetDeclarationInfo(model, node, getSymbol, new SyntaxNode[] { t.Body, t.ExpressionBody }, cancellationToken));
}
else
{
builder.Add(GetDeclarationInfo(model, node, getSymbol, t.Body ?? (SyntaxNode) t.ExpressionBody, cancellationToken));
}
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册