예제 #1
0
        /// <inheritdoc/>
        public override SyntaxNode VisitUnknownDirective(UvssUnknownDirectiveSyntax node)
        {
            var unchanged = true;

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

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

            return(unchanged ? node : new UvssUnknownDirectiveSyntax(
                       newDirectiveToken));
        }
 /// <summary>
 /// Visits the specified unknown 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 VisitUnknownDirective(UvssUnknownDirectiveSyntax node)
 {
     return(VisitSyntaxNode(node));
 }
예제 #3
0
 /// <summary>
 /// Visits an unknown directive node.
 /// </summary>
 /// <param name="unknownDirective">The unknown directive node to visit.</param>
 private void VisitUnknownDirective(UvssUnknownDirectiveSyntax unknownDirective)
 {
     Style(unknownDirective.DirectiveToken, typeUvssDirective);
 }