Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorPartTypeSyntax"/> class.
        /// </summary>
        internal UvssSelectorPartTypeSyntax(
            UvssIdentifierSyntax selectedTypeIdentifier,
            SyntaxToken exclamationMarkToken)
            : base(SyntaxKind.SelectorPartType)
        {
            this.SelectedTypeIdentifier = selectedTypeIdentifier;
            ChangeParent(selectedTypeIdentifier);

            this.ExclamationMarkToken = exclamationMarkToken;
            ChangeParent(exclamationMarkToken);

            SlotCount = 2;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorPartClassSyntax"/> class.
        /// </summary>
        internal UvssSelectorPartClassSyntax(
            SyntaxToken periodToken,
            UvssIdentifierSyntax selectedClassIdentifier)
            : base(SyntaxKind.SelectorPartClass)
        {
            this.PeriodToken = periodToken;
            ChangeParent(periodToken);

            this.SelectedClassIdentifier = selectedClassIdentifier;
            ChangeParent(selectedClassIdentifier);

            SlotCount = 2;
            UpdateIsMissing();
        }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSelectorPartNameSyntax"/> class.
        /// </summary>
        internal UvssSelectorPartNameSyntax(
            SyntaxToken hashToken,
            UvssIdentifierSyntax selectedNameIdentifier)
            : base(SyntaxKind.SelectorPartName)
        {
            this.HashToken = hashToken;
            ChangeParent(hashToken);

            this.SelectedNameIdentifier = selectedNameIdentifier;
            ChangeParent(selectedNameIdentifier);

            SlotCount = 2;
            UpdateIsMissing();
        }