示例#1
0
        /// <inheritdoc/>
        public override SyntaxNode VisitSelectorPartClass(UvssSelectorPartClassSyntax node)
        {
            var unchanged = false;

            var newPeriodToken = (SyntaxToken)Visit(node.PeriodToken);

            if (newPeriodToken != node.PeriodToken)
            {
                unchanged = false;
            }

            var newSelectedClassIdentifier = (UvssIdentifierSyntax)Visit(node.SelectedClassIdentifier);

            if (newSelectedClassIdentifier != node.SelectedClassIdentifier)
            {
                unchanged = false;
            }

            return(unchanged ? node : new UvssSelectorPartClassSyntax(
                       newPeriodToken,
                       newSelectedClassIdentifier));
        }
 /// <summary>
 /// Visits the specified selector part class 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 VisitSelectorPartClass(UvssSelectorPartClassSyntax node)
 {
     return(VisitSyntaxNode(node));
 }