/// <inheritdoc/> public override SyntaxNode VisitSelectorPartType(UvssSelectorPartTypeSyntax node) { var unchanged = true; var newSelectedTypeIdentifier = (UvssIdentifierSyntax)Visit(node.SelectedTypeIdentifier); if (newSelectedTypeIdentifier != node.SelectedTypeIdentifier) { unchanged = false; } var newExclamationMarkToken = (SyntaxToken)Visit(node.ExclamationMarkToken); if (newExclamationMarkToken != node.ExclamationMarkToken) { unchanged = false; } return(unchanged ? node : new UvssSelectorPartTypeSyntax( newSelectedTypeIdentifier, newExclamationMarkToken)); }
/// <summary> /// Visits the specified selector part type 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 VisitSelectorPartType(UvssSelectorPartTypeSyntax node) { return(VisitSyntaxNode(node)); }