protected override SyntaxNode GetNodeToSimplify( SyntaxNode root, SemanticModel model, Diagnostic diagnostic, DocumentOptionSet options, CancellationToken cancellationToken) { return(SimplifyTypeNamesCodeFixProvider.GetNodeToSimplify( root, model, diagnostic.Location.SourceSpan, options, out _, cancellationToken)); }
protected override SyntaxNode GetNodeToSimplify(SyntaxNode root, SemanticModel model, Diagnostic diagnostic, DocumentOptionSet options, out string codeActionId, CancellationToken cancellationToken) { codeActionId = null; var node = SimplifyTypeNamesCodeFixProvider.GetNodeToSimplify(root, model, diagnostic.Location.SourceSpan, options, out var diagnosticId, cancellationToken); if (node != null) { codeActionId = GetCodeActionId(diagnosticId, node.ToString()); } return(node); }