Exemplo n.º 1
0
                public async Task <SyntaxNode> GetAttributeToRemoveAsync(CancellationToken cancellationToken)
                {
                    var attributeNode = await _attribute.ApplicationSyntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);

                    return(Fixer.IsSingleAttributeInAttributeList(attributeNode) ?
                           attributeNode.Parent :
                           attributeNode);
                }