/// <summary>
        /// Initializes a new instance of the <see cref="UvssRuleSyntax"/> class.
        /// </summary>
        internal UvssRuleSyntax(
            UvssPropertyNameSyntax propertyName,
            SyntaxToken colonToken,
            UvssPropertyValueSyntax value,
            SyntaxToken qualifierToken,
            SyntaxToken semiColonToken)
            : base(SyntaxKind.Rule)
        {
            this.PropertyName = propertyName;
            ChangeParent(PropertyName);

            this.ColonToken = colonToken;
            ChangeParent(colonToken);

            this.Value = value;
            ChangeParent(value);

            this.QualifierToken = qualifierToken;
            ChangeParent(qualifierToken);

            this.SemiColonToken = semiColonToken;
            ChangeParent(semiColonToken);

            SlotCount = 5;
            UpdateIsMissing();
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssRuleSyntax"/> class.
        /// </summary>
        internal UvssRuleSyntax(
            UvssPropertyNameSyntax propertyName,
            SyntaxToken colonToken,
            UvssPropertyValueSyntax value,
            SyntaxToken qualifierToken,
            SyntaxToken semiColonToken)
            : base(SyntaxKind.Rule)
        {
            this.PropertyName = propertyName;
            ChangeParent(PropertyName);

            this.ColonToken = colonToken;
            ChangeParent(colonToken);

            this.Value = value;
            ChangeParent(value);

            this.QualifierToken = qualifierToken;
            ChangeParent(qualifierToken);

            this.SemiColonToken = semiColonToken;
            ChangeParent(semiColonToken);

            SlotCount = 5;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssNavigationExpressionSyntax"/> class.
        /// </summary>
        internal UvssNavigationExpressionSyntax(
            SyntaxToken pipeToken,
            UvssPropertyNameSyntax propertyName,
            UvssNavigationExpressionIndexerSyntax indexer,
            SyntaxToken asKeyword,
            UvssIdentifierBaseSyntax typeNameIdentifier)
            : base(SyntaxKind.NavigationExpression)
        {
            this.PipeToken = pipeToken;
            ChangeParent(pipeToken);

            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.Indexer = indexer;
            ChangeParent(indexer);

            this.AsKeyword = asKeyword;
            ChangeParent(asKeyword);

            this.TypeNameIdentifier = typeNameIdentifier;
            ChangeParent(typeNameIdentifier);

            SlotCount = 5;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssNavigationExpressionSyntax"/> class.
        /// </summary>
        internal UvssNavigationExpressionSyntax(
            SyntaxToken pipeToken,
            UvssPropertyNameSyntax propertyName,
            UvssNavigationExpressionIndexerSyntax indexer,
            SyntaxToken asKeyword,
            UvssIdentifierBaseSyntax typeNameIdentifier)
            : base(SyntaxKind.NavigationExpression)
        {
            this.PipeToken = pipeToken;
            ChangeParent(pipeToken);

            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.Indexer = indexer;
            ChangeParent(indexer);

            this.AsKeyword = asKeyword;
            ChangeParent(asKeyword);

            this.TypeNameIdentifier = typeNameIdentifier;
            ChangeParent(typeNameIdentifier);

            SlotCount = 5;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPropertyTriggerConditionSyntax"/> class.
        /// </summary>
        internal UvssPropertyTriggerConditionSyntax(
            UvssPropertyNameSyntax propertyName,
            SyntaxToken comparisonOperatorToken,
            UvssPropertyValueWithBracesSyntax propertyValue)
            : base(SyntaxKind.PropertyTriggerCondition)
        {
            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.ComparisonOperatorToken = comparisonOperatorToken;
            ChangeParent(comparisonOperatorToken);

            this.PropertyValue = propertyValue;
            ChangeParent(propertyValue);

            SlotCount = 3;
            UpdateIsMissing();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssPropertyTriggerConditionSyntax"/> class.
        /// </summary>
        internal UvssPropertyTriggerConditionSyntax(
            UvssPropertyNameSyntax propertyName,
            SyntaxToken comparisonOperatorToken,
            UvssPropertyValueWithBracesSyntax propertyValue)
            : base(SyntaxKind.PropertyTriggerCondition)
        {
            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.ComparisonOperatorToken = comparisonOperatorToken;
            ChangeParent(comparisonOperatorToken);

            this.PropertyValue = propertyValue;
            ChangeParent(propertyValue);

            SlotCount = 3;
            UpdateIsMissing();
        }
Example #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSetTriggerActionSyntax"/> class.
        /// </summary>
        internal UvssSetTriggerActionSyntax(
            SyntaxToken setKeyword,
            UvssPropertyNameSyntax propertyName,
            UvssSelectorWithParenthesesSyntax selector,
            UvssPropertyValueWithBracesSyntax value)
            : base(SyntaxKind.SetTriggerAction)
        {
            this.SetKeyword = setKeyword;
            ChangeParent(setKeyword);

            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.Selector = selector;
            ChangeParent(selector);

            this.Value = value;
            ChangeParent(value);

            SlotCount = 4;
            UpdateIsMissing();
        }
Example #8
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();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="UvssSetTriggerActionSyntax"/> class.
        /// </summary>
        internal UvssSetTriggerActionSyntax(
            SyntaxToken setKeyword,
            UvssPropertyNameSyntax propertyName,
            UvssSelectorWithParenthesesSyntax selector,
            UvssPropertyValueWithBracesSyntax value)
            : base(SyntaxKind.SetTriggerAction)
        {
            this.SetKeyword = setKeyword;
            ChangeParent(setKeyword);

            this.PropertyName = propertyName;
            ChangeParent(propertyName);

            this.Selector = selector;
            ChangeParent(selector);

            this.Value = value;
            ChangeParent(value);

            SlotCount = 4;
            UpdateIsMissing();
        }
Example #10
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();
        }
 /// <summary>
 /// Visits a property name node.
 /// </summary>
 /// <param name="propertyName">The property name node to visit.</param>
 private void VisitPropertyName(UvssPropertyNameSyntax propertyName)
 {
     Style(propertyName.AttachedPropertyOwnerNameIdentifier, typeUvssTypeName);
     Style(propertyName.PropertyNameIdentifier, typeUvssPropertyName);
 }
Example #12
0
 /// <summary>
 /// Visits the specified property name 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 VisitPropertyName(UvssPropertyNameSyntax node)
 {
     return VisitSyntaxNode(node);
 }