Beispiel #1
0
        /// <inheritdoc/>
        public override SyntaxNode VisitCultureDirective(UvssCultureDirectiveSyntax node)
        {
            var unchanged = true;

            var newDirectiveToken = (SyntaxToken)Visit(node.DirectiveToken);

            if (newDirectiveToken != node.DirectiveToken)
            {
                unchanged = false;
            }

            var newCultureValue = (UvssPropertyValueWithBracesSyntax)Visit(node.CultureValue);

            if (newCultureValue != node.CultureValue)
            {
                unchanged = false;
            }

            return(unchanged ? node : new UvssCultureDirectiveSyntax(
                       newDirectiveToken,
                       newCultureValue));
        }
 /// <summary>
 /// Visits the specified culture directive 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 VisitCultureDirective(UvssCultureDirectiveSyntax node)
 {
     return(VisitSyntaxNode(node));
 }
 /// <summary>
 /// Visits a culture directive node.
 /// </summary>
 /// <param name="cultureDirective">The unknown directive node to visit.</param>
 private void VisitCultureDirective(UvssCultureDirectiveSyntax cultureDirective)
 {
     Style(cultureDirective.DirectiveToken, typeUvssDirective);
 }