/// <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(); }
/// <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(); }
/// <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); }
/// <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); }