/// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorWithNavigationExpressionSyntax"/> class.
        /// </summary>
        internal UvssSelectorWithNavigationExpressionSyntax(
            UvssSelectorSyntax selector,
            UvssNavigationExpressionSyntax navigationExpression)
            : base(SyntaxKind.SelectorWithNavigationExpression)
        {
            this.Selector = selector;
            ChangeParent(selector);

            this.NavigationExpression = navigationExpression;
            ChangeParent(navigationExpression);

            SlotCount = 2;
            UpdateIsMissing();
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorWithNavigationExpressionSyntax"/> class.
        /// </summary>
        internal UvssSelectorWithNavigationExpressionSyntax(
            UvssSelectorSyntax selector,
            UvssNavigationExpressionSyntax navigationExpression)
            : base(SyntaxKind.SelectorWithNavigationExpression)
        {
            this.Selector = selector;
            ChangeParent(selector);

            this.NavigationExpression = navigationExpression;
            ChangeParent(navigationExpression);

            SlotCount = 2;
            UpdateIsMissing();
        }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssAnimationSyntax"/> class.
        /// </summary>
        internal UvssAnimationSyntax(
            SyntaxToken animationKeyword,
            UvssPropertyNameSyntax propertyName,
            UvssNavigationExpressionSyntax navigationExpression,
            UvssBlockSyntax body)
            : base(SyntaxKind.Animation)
        {
            this.AnimationKeyword = animationKeyword;
            ChangeParent(animationKeyword);

            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.NavigationExpression = navigationExpression;
            ChangeParent(navigationExpression);

            this.Body = body;
            ChangeParent(body);

            SlotCount = 4;
            UpdateIsMissing();
        }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssAnimationSyntax"/> class.
        /// </summary>
        internal UvssAnimationSyntax(
            SyntaxToken animationKeyword,
            UvssPropertyNameSyntax propertyName,
            UvssNavigationExpressionSyntax navigationExpression,
            UvssBlockSyntax body)
            : base(SyntaxKind.Animation)
        {
            this.AnimationKeyword = animationKeyword;
            ChangeParent(animationKeyword);

            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.NavigationExpression = navigationExpression;
            ChangeParent(navigationExpression);

            this.Body = body;
            ChangeParent(body);

            SlotCount = 4;
            UpdateIsMissing();
        }
コード例 #5
0
 /// <summary>
 /// Visits a navigation expression node.
 /// </summary>
 /// <param name="navigationExpression">The navigation expression node to visit.</param>
 private void VisitNavigationExpression(UvssNavigationExpressionSyntax navigationExpression)
 {
     Style(navigationExpression.TypeNameIdentifier, typeUvssTypeName);
 }
コード例 #6
0
ファイル: SyntaxVisitor.cs プロジェクト: RUSshy/ultraviolet
 /// <summary>
 /// Visits the specified navigation expression 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 VisitNavigationExpression(UvssNavigationExpressionSyntax node)
 {
     return VisitSyntaxNode(node);
 }