private SyntaxNode VisitTypeDeclaration(TypeDeclarationSyntax node, INamedTypeSymbol symbol) { if (node == null || symbol == null || symbol.AllInterfaces.Count != 1) return node; var face = symbol.AllInterfaces.Single(); if (!face.HasDocumentationComment()) return node; if (symbol.GetDocumentationComment().Equals(face.GetDocumentationComment())) return node; var facenode = face.GetSyntaxNodes().Single(); return node.WithDocumentationComment(facenode.GetDocumentationCommentText()); }