private Document Delete(Document document, AttributeArgumentSyntax node) { var argumentList = node.FirstAncestorOrSelf<AttributeArgumentListSyntax>(); var newArgumentList = argumentList.RemoveNode(node, SyntaxRemoveOptions.KeepNoTrivia); return document.ReplaceNodeAsync(argumentList, newArgumentList, CancellationToken.None) .WaitAndGetResult_CodeModel(CancellationToken.None); }