Esempio n. 1
0
        /// <inheritdoc/>
        public override SyntaxNode VisitTransitionArgumentList(UvssTransitionArgumentListSyntax node)
        {
            var unchanged = true;

            var newOpenParenToken = (SyntaxToken)Visit(node.OpenParenToken);

            if (newOpenParenToken != node.OpenParenToken)
            {
                unchanged = false;
            }

            var newArguments = VisitSeparatedList(node.Arguments);

            if (newArguments.Node != node.Arguments.Node)
            {
                unchanged = false;
            }

            var newCloseParenToken = (SyntaxToken)Visit(node.CloseParenToken);

            if (newCloseParenToken != node.CloseParenToken)
            {
                unchanged = false;
            }

            return(unchanged ? node : new UvssTransitionArgumentListSyntax(
                       newOpenParenToken,
                       newArguments,
                       newCloseParenToken));
        }
 /// <summary>
 /// Visits the specified transition argument list node.
 /// </summary>
 /// <param name="node">The node to visit.</param>
 /// <returns>A node which should replace the visited node, or a reference to the visited node
 /// itself if no changes were made.</returns>
 public virtual SyntaxNode VisitTransitionArgumentList(UvssTransitionArgumentListSyntax node)
 {
     return(VisitSyntaxNode(node));
 }