/// <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();
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorWithParenthesesSyntax"/> class.
        /// </summary>
        internal UvssSelectorWithParenthesesSyntax(
            SyntaxToken openParenToken,
            UvssSelectorSyntax selector,
            SyntaxToken closeParenToken)
            : base(SyntaxKind.SelectorWithParentheses)
        {
            this.OpenParenToken = openParenToken;
            ChangeParent(openParenToken);

            this.Selector = selector;
            ChangeParent(selector);

            this.CloseParenToken = closeParenToken;
            ChangeParent(closeParenToken);

            SlotCount = 3;
            UpdateIsMissing();
        }