public override SyntaxNode VisitLiteralExpression(LiteralExpressionSyntax node) { if (node.IsKind(SyntaxKind.StringLiteralExpression) && node.ToString().IndexOf('\n') >= 0) { node = node.WithAdditionalAnnotations(LayoutAnnotations.MultiLineConstructAnnotation); } return(base.VisitLiteralExpression(node)); }
public override SyntaxNode VisitLiteralExpression(LiteralExpressionSyntax node) { if (node.IsKind(SyntaxKind.StringLiteralExpression) && node.ToString().IndexOf('\n') >= 0) { node = node.WithAdditionalAnnotations(LayoutAnnotations.MultiLineConstructAnnotation); } return base.VisitLiteralExpression(node); }