Example #1
0
 public virtual void OnTernaryExpression(TernaryExpression node)
 {
     if (EnterTernaryExpression(node))
     {
         Switch(node.Condition);
         Switch(node.TrueExpression);
         Switch(node.FalseExpression);
         LeaveTernaryExpression(node);
     }
 }
Example #2
0
 public virtual void LeaveTernaryExpression(TernaryExpression node)
 {
 }
Example #3
0
 public virtual bool EnterTernaryExpression(TernaryExpression node)
 {
     return(true);
 }