Exemplo n.º 1
0
        /// <summary>Called when the visitor visits a ArgumentListSyntax node.</summary>
        public override SyntaxNode VisitArgumentList(ArgumentListSyntax node)
        {
            if (node.ContainsAnnotations && node.HasAnnotation(Annotations.ThenArgument))
            {
                using (Tab())
                {
                    var r = base.VisitArgumentList(node) as ArgumentListSyntax;

                    return(r
                           .WithCloseParenToken(Token(SyntaxKind.CloseParenToken).WithLeadingTrivia(Tabs.BrTabs_Prev()))
                           .WithOpenParenToken(Token(SyntaxKind.OpenParenToken).WithLeadingTrivia(Tabs.BrTabs_Prev()))
                           );
                }
            }
            return(base.VisitArgumentList(node));
        }