/// <summary> /// Initializes a new instance of the <see cref="UvssSelectorPartSyntax"/> class. /// </summary> internal UvssSelectorPartSyntax( UvssSelectorPartTypeSyntax selectedType, UvssSelectorPartNameSyntax selectedName, SyntaxList <UvssSelectorPartClassSyntax> selectedClasses, UvssPseudoClassSyntax pseudoClass) : base(SyntaxKind.SelectorPart) { this.SelectedType = selectedType; ChangeParent(selectedType); this.SelectedName = selectedName; ChangeParent(selectedName); this.SelectedClasses = selectedClasses; ChangeParent(selectedClasses.Node); this.PseudoClass = pseudoClass; ChangeParent(pseudoClass); SlotCount = 4; UpdateIsMissing(); }
/// <summary> /// Initializes a new instance of the <see cref="UvssSelectorPartSyntax"/> class. /// </summary> internal UvssSelectorPartSyntax( UvssSelectorPartTypeSyntax selectedType, UvssSelectorPartNameSyntax selectedName, SyntaxList<UvssSelectorPartClassSyntax> selectedClasses, UvssPseudoClassSyntax pseudoClass) : base(SyntaxKind.SelectorPart) { this.SelectedType = selectedType; ChangeParent(selectedType); this.SelectedName = selectedName; ChangeParent(selectedName); this.SelectedClasses = selectedClasses; ChangeParent(selectedClasses.Node); this.PseudoClass = pseudoClass; ChangeParent(pseudoClass); SlotCount = 4; UpdateIsMissing(); }
/// <summary> /// Visits a pseudo class node. /// </summary> /// <param name="pseudoClass">The pseudo class node to visit.</param> private void VisitPseudoClass(UvssPseudoClassSyntax pseudoClass) { Style(pseudoClass, typeUvssSelector); }
/// <summary> /// Visits the specified pseudo-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 VisitPseudoClass(UvssPseudoClassSyntax node) { return VisitSyntaxNode(node); }