Beispiel #1
0
        public override SyntaxNode VisitIfStatement(IfStatementSyntax node)
        {
            if (node.HasAnnotation(processedAnnotation))
            {
                return(base.VisitIfStatement(node));
            }

            if (NoClausesNeedBraces(node))
            {
                node = RemoveClauseBraces(node);                 //TODO: trailing space
            }
            node = AnnotateTreeProcessed(node);
            return(base.VisitIfStatement(node));
        }