コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
ファイル: SyntaxVisitor.cs プロジェクト: RUSshy/ultraviolet
 /// <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);
 }