/// <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();
        }
Exemple #3
0
 /// <summary>
 /// Visits the specified selector part name 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 VisitSelectorPartName(UvssSelectorPartNameSyntax node)
 {
     return VisitSyntaxNode(node);
 }