Beispiel #1
0
 protected virtual T VisitIfStatement(IfStatementNode node)
 {
     Visit(node.IfNode);
     Visit(node.ElseIfNodes);
     Visit(node.ElseNodeBodyNodes);
     return(DefaultResult);
 }
 protected virtual void VisitIfStatement(IfStatementNode node)
 {
     Visit(node.IfNode);
     Visit(node.ElseIfNodes);
     if (node.ElseNodeBodyNodes != null)
     {
         Visit(node.ElseNodeBodyNodes);
     }
 }
        protected override void VisitIfStatement(IfStatementNode node)
        {
            if (node.ElseNodeBodyNodes != null)
            {
                CheckStatementsForSingleExpressionHack(node.ElseNodeBodyNodes);
            }

            base.VisitIfStatement(node);
        }